mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 13:21:45 +00:00
Co-authored-by: Elias Schneider <login@eliasschneider.com> Co-authored-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
25 lines
532 B
Svelte
25 lines
532 B
Svelte
<script lang="ts">
|
|
import { cn, type WithElementRef } from '$lib/utils/style.js';
|
|
import type { HTMLFieldsetAttributes } from 'svelte/elements';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLFieldsetAttributes> = $props();
|
|
</script>
|
|
|
|
<fieldset
|
|
bind:this={ref}
|
|
data-slot="field-set"
|
|
class={cn(
|
|
'flex flex-col gap-4',
|
|
'has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</fieldset>
|