<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.
state
default
default
success
warning
error
rows
5
cols
40
block
false
textarea
<textarea>
element (bindable).All other properties are passed through to the native <textarea>
element.
start
end
<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>