Component

Textarea

Capture multi-line text with ease.

Installation

Get the component

npx lomer-ui get textarea
Source code

Usage

Preview

Svelte Code

1
<script>
2
  import Textarea from '$lib/components/base/textarea.svelte';
3
</script>
4

5
<!-- Basic -->
6
<Textarea />
7

8
<!-- Disabled -->
9
<Textarea disabled />
10

Form

Preview

Value:

Svelte Code

1
<script lang="ts">
2
  import Textarea from '$lib/components/base/textarea.svelte';
3

4
  let value = $state('');
5
</script>
6

7
<Textarea bind:value />
8
<p>Value: {value}</p>
9