sterling-svelte  1.0.4
A modern, accessible, lightweight UI component library for Svelte.

TextArea

A styled HTML textarea element.

Props

HTMLTextArea props are included.

/** When true, the text area will resize itself vertically to fit text.*/
export let autoHeight = false;

/** Sets the resize handle direction. */
export let resize: TextAreaResize = 'none';

/** Additional class names to apply. */
export let variant: string = '';

Events

HTMLTextArea events are included.

Methods

HTMLTextArea blur, click, focus, select, setRangeText and setSelectionRanges methods are included.

Anatomy

<div class="sterling-text-area">
  <textarea />
</div>

Playground