Skip to content

Textarea

Matches the look of Samla’s TextInput so the two sit together in a form. Any native textarea attribute (name, required, placeholder, maxlength) passes straight through, and slot content becomes the initial value.

Describe what the piece should do.

  • label, id: required
  • hint: help text shown below the field
  • rows: visible rows (default 5); the field resizes vertically
  • Default slot: initial text inside the field
  • Any other textarea attribute is passed to the field
<Textarea id="message" name="message" label="Description" hint="Describe what the piece should do." />
With TextInput, a placeholder and an initial value