mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-28 02:06:37 +00:00
18 lines
439 B
Svelte
18 lines
439 B
Svelte
<script lang="ts">
|
|
import * as FormPrimitive from 'formsnap';
|
|
import { cn } from '$lib/utils/style.js';
|
|
|
|
type $$Props = FormPrimitive.LegendProps;
|
|
|
|
let className: $$Props['class'] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<FormPrimitive.Legend
|
|
{...$$restProps}
|
|
class={cn('data-[fs-error]:text-destructive text-sm leading-none font-medium', className)}
|
|
let:legendAttrs
|
|
>
|
|
<slot {legendAttrs} />
|
|
</FormPrimitive.Legend>
|