UNPKG

common-intellisense

Version:
144 lines (143 loc) 4.24 kB
{ "props": [ { "Attribute": "children", "Type": "`ReactNode`", "Description": "The content of the textarea.", "Default": "-" }, { "Attribute": "minRows", "Type": "`number`", "Description": "The minimum number of rows to display.", "Default": "`3`" }, { "Attribute": "maxRows", "Type": "`number`", "Description": "Maximum number of rows up to which the textarea can grow.", "Default": "`8`" }, { "Attribute": "cacheMeasurements", "Type": "`boolean`", "Description": "Reuse previously computed measurements when computing height of textarea.", "Default": "`false`" }, { "Attribute": "variant", "Type": "`flat` | `bordered` | `faded` | `underlined`", "Description": "The variant of the textarea.", "Default": "`flat`" }, { "Attribute": "color", "Type": "`default` | `primary` | `secondary` | `success` | `warning` | `danger`", "Description": "The color of the textarea.", "Default": "`default`" }, { "Attribute": "size", "Type": "`sm`|`md`|`lg`", "Description": "The size of the textarea.", "Default": "`md`" }, { "Attribute": "radius", "Type": "`none` | `sm` | `md` | `lg` | `full`", "Description": "The radius of the textarea.", "Default": "-" }, { "Attribute": "label", "Type": "`ReactNode`", "Description": "The content to display as the label.", "Default": "-" }, { "Attribute": "value", "Type": "`string`", "Description": "The current value of the textarea (controlled).", "Default": "-" }, { "Attribute": "defaultValue", "Type": "`string`", "Description": "The default value of the textarea (uncontrolled).", "Default": "-" }, { "Attribute": "placeholder", "Type": "`string`", "Description": "The placeholder of the textarea.", "Default": "-" }, { "Attribute": "description", "Type": "`ReactNode`", "Description": "A description for the textarea. Provides a hint such as specific requirements for what to choose.", "Default": "-" }, { "Attribute": "errorMessage", "Type": "`ReactNode`", "Description": "An error message for the textarea.", "Default": "-" }, { "Attribute": "labelPlacement", "Type": "`inside` | `outside` | `outside-left`", "Description": "The position of the label.", "Default": "`inside`" }, { "Attribute": "fullWidth", "Type": "`boolean`", "Description": "Whether the textarea should take up the width of its parent.", "Default": "`true`" }, { "Attribute": "isRequired", "Type": "`boolean`", "Description": "Whether user input is required on the textarea before form submission.", "Default": "`false`" }, { "Attribute": "isReadOnly", "Type": "`boolean`", "Description": "Whether the textarea can be selected but not changed by the user.", "Default": "" }, { "Attribute": "isDisabled", "Type": "`boolean`", "Description": "Whether the textarea is disabled.", "Default": "`false`" }, { "Attribute": "isInvalid", "Type": "`boolean`", "Description": "Whether the textarea is invalid.", "Default": "`false`" }, { "Attribute": "validationState", "Type": "`valid` | `invalid`", "Description": "Whether the textarea should display its \"valid\" or \"invalid\" visual styling. (**Deprecated**) use **isInvalid** instead.", "Default": "-" }, { "Attribute": "disableAnimation", "Type": "`boolean`", "Description": "Whether the textarea should be animated.", "Default": "`false`" }, { "Attribute": "classNames", "Type": "`Record<\"base\"\"label\"\"inputWrapper\"\"input\"\"description\"\"errorMessage\", string>`", "Description": "Allows to set custom class names for the checkbox slots.", "Default": "-" } ], "link": "https://nextui.org/docs/components/textarea" }