mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-05-03 02:11:20 +00:00
17 lines
430 B
Svelte
17 lines
430 B
Svelte
<script lang="ts">
|
|
import * as FormPrimitive from 'formsnap';
|
|
import { cn } from '$lib/utils';
|
|
|
|
type $$Props = FormPrimitive.LegendProps;
|
|
|
|
let className: $$Props['class'] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<FormPrimitive.Legend
|
|
{...$$restProps}
|
|
class={cn('text-sm font-medium leading-none data-[fs-error]:text-destructive', className)}
|
|
let:legendAttrs
|
|
>
|
|
<slot {legendAttrs} />
|
|
</FormPrimitive.Legend>
|