17 lines
515 B
Svelte
17 lines
515 B
Svelte
<script lang="ts">
|
|
import { cn } from "$lib/utils.js";
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
|
|
let { class: className = "", orientation = "horizontal" as "horizontal" | "vertical", ...rest }: HTMLAttributes<HTMLDivElement> & { orientation?: "horizontal" | "vertical" } = $props();
|
|
</script>
|
|
<div
|
|
role="separator"
|
|
aria-orientation={orientation}
|
|
class={cn(
|
|
"shrink-0 bg-border",
|
|
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
className
|
|
)}
|
|
{...rest}
|
|
/>
|