Text Area
The Text Area component is used for inputs.
1. Import
KUMUI exports 1 Textarea-related components:
import { Textarea } from "@rohitgadekar/kimui";
2. Usage
3. API
3.1 Textarea
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | The content or placeholder of the textarea. | - |
| placeholder | string | The text displayed inside the textarea when it is empty. In your example, it is "Type your message here.". | - |
| disabled | boolean | Disables the textarea. Users won’t be able to edit the content. | false |
| rows | number | Specifies the number of visible text lines in the textarea. | 4 |
| cols | number | Specifies the visible width of the textarea in characters. | 20 |