2026-02-24 18:02:52 +03:00
|
|
|
<!--
|
|
|
|
|
Component: Divider
|
|
|
|
|
1px separator line, horizontal or vertical.
|
|
|
|
|
-->
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { cn } from '$shared/shadcn/utils/shadcn-utils';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
orientation?: 'horizontal' | 'vertical';
|
|
|
|
|
class?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
orientation = 'horizontal',
|
|
|
|
|
class: className,
|
|
|
|
|
}: Props = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
class={cn(
|
2026-02-27 18:42:54 +03:00
|
|
|
'bg-black/10 dark:bg-white/10',
|
2026-02-24 18:02:52 +03:00
|
|
|
orientation === 'horizontal' ? 'w-full h-px' : 'w-px h-full',
|
|
|
|
|
className,
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
</div>
|