Textarea
Textarea is used when you want to get larger amount of texts from the user.
codeExamples
guidelines
Occasionally, we ask our users for slightly longer texts, such as feedback, additional information related to travels, and so on. In such cases, it may be useful to use a <Textarea />.
If you only want one line of text, use <Input />.
code
<Textarea />
import { Textarea } from "@vygruppen/spor-react";
A textarea
Props
Name | Type | Required? | Description |
|---|---|---|---|
disabled | boolean | ||
errorText | React.ReactNode | Display error text for the component | |
helperText | React.ReactNode | Display helper text for the input | |
invalid | boolean | ||
label | string | A descriptive label | |
readonly | boolean | ||
required | boolean | ||
variant | "core" | "floating" | Defaults to core. |