2023-09-08 23:30:32 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { getFormField } from "formsnap";
|
|
|
|
|
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
|
|
|
import type { TextareaGetFormField } from ".";
|
2024-01-27 00:35:02 +00:00
|
|
|
import { Textarea, type TextareaEvents } from "$lib/components/ui/textarea";
|
2023-09-08 23:30:32 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
/>
|