init commit
This commit is contained in:
commit
c9d982669a
461 changed files with 30317 additions and 0 deletions
15
resources/js/components/ui/form/form-fieldset.svelte
Normal file
15
resources/js/components/ui/form/form-fieldset.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts" generics="T extends Record<string, unknown>, U extends FormPath<T>">
|
||||
import * as FormPrimitive from "formsnap";
|
||||
import type { FormPath } from "sveltekit-superforms";
|
||||
import { cn, type WithoutChild } from "@/lib/utils.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} />
|
Loading…
Add table
Add a link
Reference in a new issue