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

25 lines
595 B
Svelte

<script lang="ts">
import { cn } from '$lib/utils.js';
import { Separator as SeparatorPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
class: className,
orientation = 'horizontal',
decorative = true,
...restProps
}: SeparatorPrimitive.RootProps = $props();
</script>
<SeparatorPrimitive.Root
bind:ref
data-slot="separator-root"
{decorative}
{orientation}
class={cn(
'bg-surface shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
className
)}
{...restProps}
/>