<script lang="ts">
import { TextArea } from '@geoffcox/sterling-svelte';
let value : string = '';
</script>
<TextArea bind:value resize="none" />
| Property Name | Type | Default | Comment | |
|---|---|---|---|---|
| autoHeight | boolean | false | When true, the text area will resize itself vertically to fit text. | |
| resize | TextAreaResize | 'none' | Sets the resize handle direction. | |
| variant | string | '' | Additional class names to apply |
<div class="sterling-text-area"> <textarea /> </div>