2025-11-21 12:18:04 +01:00
|
|
|
<script lang="ts">
|
2025-11-24 01:00:50 +01:00
|
|
|
import { Tabs as TabsPrimitive } from 'bits-ui';
|
|
|
|
|
import { cn } from '../../tools';
|
2025-11-21 12:18:04 +01:00
|
|
|
|
2025-11-24 01:00:50 +01:00
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
value = $bindable(''),
|
|
|
|
|
class: className,
|
|
|
|
|
...restProps
|
|
|
|
|
}: TabsPrimitive.RootProps = $props();
|
2025-11-21 12:18:04 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<TabsPrimitive.Root
|
2025-11-24 01:00:50 +01:00
|
|
|
bind:ref
|
|
|
|
|
bind:value
|
|
|
|
|
data-slot="tabs"
|
|
|
|
|
class={cn('ui:flex ui:flex-col ui:gap-2', className)}
|
|
|
|
|
{...restProps}
|
2025-11-21 12:18:04 +01:00
|
|
|
/>
|