Textarea
Usage
Use a v-model
to make the Textarea reactive.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Style
Use the color
and variant
props to change the visual style of the Textarea.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Besides all the colors from the ui.colors
object, you can also use the white
(default) and gray
colors with their pre-defined variants.
White
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Gray
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Size
Use the size
prop to change the size of the Textarea.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Placeholder
Use the placeholder
prop to set a placeholder text.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Rows
Use the rows
prop to set the number of rows of the Textarea.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Disabled
Use the disabled
prop to disable the Textarea.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Autoresize
Use the autoresize
prop to enable the autoresize. Writing more lines than the rows
prop will make the Textarea grow up.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Use the maxrows
prop to set a maximum number of rows when autoresizing. If set to 0
, the Textarea will infinitely grow up.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Resize
Use the resize
prop to enable the resize control.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Padded
Use the padded
prop to remove the padding of the Textarea.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Props
null
null
"md"
"2xs"
"xs"
"sm"
"lg"
"xl"
config.default.color
"primary"
"white"
"gray"
"red"
"orange"
"amber"
"yellow"
"lime"
"green"
"emerald"
"teal"
"cyan"
"sky"
"blue"
"indigo"
"violet"
"purple"
"fuchsia"
"pink"
"rose"
{}
null
""
config.default.variant
"outline"
"none"
null
100
{}
3
0
null
false
false
false
false
true
false
Config
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }