mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-30 11:16:35 +00:00
21 lines
617 B
Svelte
21 lines
617 B
Svelte
<script lang="ts" module>
|
|
import type { FormPath as _FormPath } from 'sveltekit-superforms';
|
|
type T = Record<string, unknown>;
|
|
type U = _FormPath<T>;
|
|
</script>
|
|
|
|
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">
|
|
import * as FormPrimitive from 'formsnap';
|
|
import { cn, type WithoutChild } from '$lib/utils/style.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
form,
|
|
name,
|
|
...restProps
|
|
}: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();
|
|
</script>
|
|
|
|
<FormPrimitive.Fieldset bind:ref {form} {name} class={cn('space-y-2', className)} {...restProps} />
|