summaryrefslogtreecommitdiff
path: root/frontend/src/lib/components/ui/separator/separator.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/lib/components/ui/separator/separator.svelte')
-rw-r--r--frontend/src/lib/components/ui/separator/separator.svelte21
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/src/lib/components/ui/separator/separator.svelte b/frontend/src/lib/components/ui/separator/separator.svelte
new file mode 100644
index 0000000..e91b176
--- /dev/null
+++ b/frontend/src/lib/components/ui/separator/separator.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+ import { Separator as SeparatorPrimitive } from "bits-ui";
+ import { cn } from "$lib/utils.js";
+
+ let {
+ ref = $bindable(null),
+ class: className,
+ "data-slot": dataSlot = "separator",
+ ...restProps
+ }: SeparatorPrimitive.RootProps = $props();
+</script>
+
+<SeparatorPrimitive.Root
+ bind:ref
+ data-slot={dataSlot}
+ class={cn(
+ "shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
+ className
+ )}
+ {...restProps}
+/>