20 lines
373 B
Svelte
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}
|
|
/>
|