mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-05-03 02:11:20 +00:00
29 lines
615 B
Svelte
29 lines
615 B
Svelte
<script lang="ts">
|
|
import { getFormField } from 'formsnap';
|
|
import type { HTMLTextareaAttributes } from 'svelte/elements';
|
|
import type { TextareaGetFormField } from '.';
|
|
import { Textarea, type TextareaEvents } from '$lib/components/ui/textarea';
|
|
|
|
type $$Props = HTMLTextareaAttributes;
|
|
type $$Events = TextareaEvents;
|
|
|
|
const { attrStore, value } = getFormField() as TextareaGetFormField;
|
|
</script>
|
|
|
|
<Textarea
|
|
{...$attrStore}
|
|
bind:value={$value}
|
|
{...$$restProps}
|
|
on:blur
|
|
on:change
|
|
on:click
|
|
on:focus
|
|
on:keydown
|
|
on:keypress
|
|
on:keyup
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
on:paste
|
|
on:input
|
|
/>
|