Textarea component is used for multi-line text input with customizable styling and validation support. It's ideal for fields that require long text, such as descriptions, comments, messages, and biographies.tsx
import { Textarea } from "@arkyn/components";
name property.tsx
<Textarea name="basic-textarea" />
tsx
<Textareaname="description-md"label="Description (medium)"placeholder="Enter description..."size="md"rows={3}/><Textareaname="description-lg"label="Description (large)"placeholder="Enter description..."size="lg"rows={3}/>
solid and outline, providing different visual styles to suit your interface design.tsx
<Textareaname="comment-solid"label="Comment (solid)"placeholder="Enter your comment..."variant="solid"rows={3}/><Textareaname="comment-outline"label="Comment (outline)"placeholder="Enter your comment..."variant="outline"rows={3}/>
tsx
<Textareaname="disabled-with-value"label="Disabled with value"value="This text cannot be edited because the field is disabled."disabledrows={3}/>
tsx
<Textareaname="terms-conditions"label="Terms and Conditions"value="Here are the terms and conditions of our application. This text is for display only and cannot be modified."readOnlyrows={4}variant="outline"/>
errorMessage property, it will take precedence over messages from the form provider.tsx
<Textareaname="invalid-description"label="Description"placeholder="Enter a description..."errorMessage="The description must be at least 10 characters long"showAsteriskrows={3}/>
name - string (required)
Field name for form manipulation and identificationlabel - string
Label text to display above the textareashowAsterisk - boolean
Whether to display an asterisk in the label for required fieldserrorMessage - string
Error message to display below the textareasize - "md" | "lg" (default: "md")
Textarea size variantvariant - `"solid" | "outline" (default: "solid")
Visual variant of the textarea<textarea> are also supported, except name, which is controlled by the component.rows and cols to define the initial size of the textarearesize property in style controls how the user can resizemaxLength limits the number of characters that can be entered