Files
trevstack/client/src/lib/ui/tabs/tabs.svelte
2025-05-13 17:19:12 -04:00

20 lines
373 B
Svelte

<script lang="ts">
import { cn } from '$lib/utils.js';
import { Tabs as TabsPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
class: className,
value = $bindable(),
...restProps
}: TabsPrimitive.RootProps = $props();
</script>
<TabsPrimitive.Root
bind:ref
bind:value
data-slot="tabs"
class={cn('flex flex-col gap-2', className)}
{...restProps}
/>