<Textarea> is a multi-line text input control. It is a wrapper around the native <textarea> element. The default events are forwarded from the input element.
statedefaultdefaultsuccesswarningerrorrows5cols40blockfalsetextarea<textarea> element (bindable).All other properties are passed through to the native <textarea> element.
startend<Textarea
bind:value={myVal}
placeholder="Enter some text"
/> <Textarea placeholder="Default" />
<Textarea placeholder="Success" state="success" />
<Textarea placeholder="Warning" state="warning" />
<Textarea placeholder="Error" state="error" /> <Textarea placeholder="Block Textarea" block /> <Textarea placeholder="Custom cols/rows" cols={60} rows={10} /> <Textarea placeholder="Write a post">
<IconPen slot="start" color="var(--text-light)" />
<Loader slot="end" size="small" colorTrack="var(--accent-light)"/>
</Textarea>