mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-10 11:13:48 +02:00
Remove most of Radix UI
This commit is contained in:
20
src-web/components/core/Separator.tsx
Normal file
20
src-web/components/core/Separator.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import classnames from 'classnames';
|
||||
|
||||
interface Props {
|
||||
orientation?: 'horizontal' | 'vertical';
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function Separator({ className, orientation = 'horizontal' }: Props) {
|
||||
return (
|
||||
<div
|
||||
role="separator"
|
||||
className={classnames(
|
||||
className,
|
||||
'bg-gray-300/40',
|
||||
orientation === 'horizontal' && 'w-full h-[1px]',
|
||||
orientation === 'vertical' && 'h-full w-[1px]',
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user