2026-02-24 18:02:52 +03:00
|
|
|
<!--
|
|
|
|
|
Component: Divider
|
|
|
|
|
1px separator line, horizontal or vertical.
|
|
|
|
|
-->
|
|
|
|
|
<script lang="ts">
|
2026-04-23 09:48:32 +03:00
|
|
|
import { cn } from '$shared/lib';
|
2026-02-24 18:02:52 +03:00
|
|
|
|
|
|
|
|
interface Props {
|
2026-03-02 22:19:35 +03:00
|
|
|
/**
|
|
|
|
|
* Divider orientation
|
|
|
|
|
* @default 'horizontal'
|
|
|
|
|
*/
|
2026-02-24 18:02:52 +03:00
|
|
|
orientation?: 'horizontal' | 'vertical';
|
2026-03-02 22:19:35 +03:00
|
|
|
/**
|
|
|
|
|
* CSS classes
|
|
|
|
|
*/
|
2026-02-24 18:02:52 +03:00
|
|
|
class?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
orientation = 'horizontal',
|
|
|
|
|
class: className,
|
|
|
|
|
}: Props = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
2026-04-23 09:48:32 +03:00
|
|
|
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>
|