Overview Button Copy button Field Input Number field Textarea Select Combobox Multiselect Date picker Date range picker Date-time picker Checkbox Radio group Position picker Switch Slider Dropzone Device controls Avatar Badge Card Collapsible Kbd Map Matrix Proportion bar Separator Stat Table Timeline Chat Playback Pagination Charts Chart theming Profile chart Time series chart Bar chart Isopleth chart TS diagram Box plot Rose chart Calendar chart Banner Toast Loader Progress Skeleton Empty state Error state Dropdown menu Tooltip Info tooltip Dialog Sheet Resizable Confirm dialog Breadcrumbs Command palette Mobile menu Navigation list Outline Scroll rail Sidebar Tabs
Textarea
Several lines of text. Starts at a few lines and grows as you type, up to a limit, then scrolls. No handle to drag.
Example
Type a few lines and it grows.
<Field label="Note to the operator" optional>
<Textarea bind:value={note} rows={3} maxRows={8} />
</Field> Rules
- For text that's often more than a line: notes, descriptions, messages.
- Start it at the length a typical answer has, so it rarely needs to grow.