aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/shadcn/components/ui/separator/separator.svelte
blob: b07c93eac5fd0df26aef4ee1d3a0e8f12ec6137b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script>
	import { Separator as SeparatorPrimitive } from "bits-ui";
	import { cn } from "$lib/shadcn/utils";
	let className = undefined;
	export let orientation = "horizontal";
	export let decorative = undefined;
	export { className as class };
</script>

<SeparatorPrimitive.Root
	class={cn(
		"shrink-0 bg-border",
		orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
		className
	)}
	{orientation}
	{decorative}
	{...$$restProps}
/>