16 lines
381 B
TypeScript
16 lines
381 B
TypeScript
export function Separator({
|
|
orientation = 'horizontal',
|
|
className = '',
|
|
}: {
|
|
orientation?: 'horizontal' | 'vertical';
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<span
|
|
role="separator"
|
|
aria-orientation={orientation}
|
|
className={`${orientation === 'horizontal' ? 'block h-px w-full' : 'inline-block h-full w-px'} shrink-0 bg-border ${className}`}
|
|
/>
|
|
);
|
|
}
|