tsx
import { Textarea } from "@arkyn/components";
tsx
<Textarea name="description" placeholder="Enter description..." />
tsx
<Textareaname="summaryMd"label="Summary (md)"size="md"placeholder="Medium textarea"rows={4}/><Textareaname="summaryLg"label="Summary (lg)"size="lg"placeholder="Large textarea"rows={6}/>
tsx
<Textareaname="solidNotes"label="Solid"variant="solid"placeholder="Solid variant"/><Textareaname="outlineNotes"label="Outline"variant="outline"placeholder="Outline variant"/>
tsx
<Textareaname="bio"label="Biography"showAsteriskplaceholder="Tell us about yourself"errorMessage="Biography is required"rows={5}/>
tsx
<Textareaname="message"label="Message"value={message}onChange={(e) => setMessage(e.target.value)}placeholder="Type your message..."rows={5}showAsterisk/><Textareaname="terms"label="Terms and Conditions"value={termsContent}readOnlyrows={10}variant="outline"/>
tsx
<Textareaname="disabledField"label="Disabled Field"value="This field is disabled"disabledplaceholder="Cannot edit this field"/>
tsx
<Textareaname="feedback"label="Feedback"errorMessage="Please provide feedback"placeholder="Share your feedback"rows={4}/>
name - string
Required field name used for form handling and textarea identification.label - string
Optional label displayed above the textarea.showAsterisk - boolean
Displays required indicator in the label.errorMessage - string
Custom error text rendered below the textarea.size - "md" | "lg" (default: "md")
Controls textarea sizing.variant - "solid" | "outline" (default: "solid")
Defines textarea container style.value - string
Controlled textarea value.defaultValue - string
Initial value for uncontrolled usage.disabled - boolean
Disables input interaction.readOnly - boolean
Prevents editing while keeping focus behavior.onFocus - (event: FocusEvent<HTMLTextAreaElement>) => void
Called when textarea receives focus.onBlur - (event: FocusEvent<HTMLTextAreaElement>) => void
Called when textarea loses focus.id - string
Custom id for label association.placeholder - string
Placeholder text shown when there is no value.rows - number
Visible number of text lines.cols - number
Visible character width.className - string
Additional class names for the wrapper.style - CSSProperties
Inline styles applied to the clickable section.title - string
Native title attribute on the clickable section....rest - Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "name" | "value" | "defaultValue">
Other valid native textarea attributes are forwarded except the overridden ones.