flbxcup/resources/js/components/ui/form/form-legend.svelte
2025-06-23 23:12:40 +02:00

16 lines
398 B
Svelte

<script lang="ts">
import * as FormPrimitive from "formsnap";
import { cn, type WithoutChild } from "@/lib/utils.js";
let {
ref = $bindable(null),
class: className,
...restProps
}: WithoutChild<FormPrimitive.LegendProps> = $props();
</script>
<FormPrimitive.Legend
bind:ref
class={cn("data-[fs-error]:text-destructive text-sm font-medium leading-none", className)}
{...restProps}
/>