Used to enter multiple lines of text.
import { TextAreaInput } from '@fintech-sandpit/ui/react';
hint="Please enter your bio"
placeholder="Enter your bio here..."
import { TextAreaInput } from '@fintech-sandpit/ui/vue';
hint="Please enter your bio"
placeholder="Enter your bio here..."
| Name | Type | Required | Default | Description |
|---|
value | string | | — | Controlled value of the text area |
defaultValue | string | | — | Default (uncontrolled) value of the text area |
name | string | | — | Name of the input element |
orientation | Orientation | | vertical | Orientation of the text area |
size | Size | | md | Size of the text area |
label | string | | — | Label of the text area |
hint | string | | — | Helper text of the text area |
error | string | | — | Error text of the text area |
required | boolean | | false | Whether the text area is required |
invalid | boolean | | false | Whether the text area is invalid |
readOnly | boolean | | false | Whether the text area is read only |
disabled | boolean | | false | Whether the text area is disabled |
placeholder | string | | — | Placeholder of the text area |
autoresize | boolean | | false | Whether the text area should autoresize |
rows | number | | — | Number of rows of the text area |
| Name | Type | Required | Default | Description |
|---|
model-value | string | | — | Controlled value of the text area 1 |
default-value | string | | — | Default (uncontrolled) value of the text area |
name | string | | — | Name of the input element |
orientation | Orientation | | vertical | Orientation of the text area |
size | Size | | md | Size of the text area |
label | string | | — | Label of the text area |
hint | string | | — | Helper text of the text area |
error | string | | — | Error text of the text area |
required | boolean | | false | Whether the text area is required |
invalid | boolean | | false | Whether the text area is invalid |
read-only | boolean | | false | Whether the text area is read only |
disabled | boolean | | false | Whether the text area is disabled |
placeholder | string | | — | Placeholder of the text area |
autoresize | boolean | | false | Whether the text area should autoresize |
rows | number | | — | Number of rows of the text area |
- Can be used with the
v-model directive for two-way binding.
| Name | Type | Description |
|---|
onChange | (value: string) => void | Event handler for when the value changes |
| Name | Type | Description |
|---|
update:model-value | (value: string) => void | Event handler for when the value changes |
type Orientation = 'horizontal' | 'vertical';
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';