Textarea
A Textarea component is an input field that allows users to enter multi-line text. It provides a larger area for text input compared to a standard text input field, making it ideal for comments, feedback, or any scenario where users need to provide detailed information. Textareas can be resized, styled, and configured to support features like character limits, placeholders, and auto-resizing to enhance user experience.
# Demo
Demo Coming Soon
Textarea examples will be available soon.
# Usage
# Attributes
Name | Type | Default | Details |
---|---|---|---|
id | string | Optional | You can pass id to create unique identifier. |
label | React.ReactNode | Optional | Label for the textarea. |
labelClassName | string | ' ' | You can customise by passing tailwind classes. |
textareaClassName | string | ' ' | You can customise by passing tailwind classes. |
className | string | ' ' | You can customise by passing tailwind classes. |
error | React.ReactNode | Optional | Error message to display. |
helperText | React.ReactNode | Optional | Helper text to display. |
onChange | (e: React.ChangeEvent<HTMLTextAreaElement>) => void | Optional | Change event handler. |
# Tags