🎉 first commit
This commit is contained in:
22
app/components/ui/Separator.tsx
Normal file
22
app/components/ui/Separator.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
||||
import classNames from 'classnames';
|
||||
|
||||
interface SeparatorProps {
|
||||
className?: string;
|
||||
orientation?: 'horizontal' | 'vertical';
|
||||
}
|
||||
|
||||
export const Separator = ({ className, orientation = 'horizontal' }: SeparatorProps) => {
|
||||
return (
|
||||
<SeparatorPrimitive.Root
|
||||
className={classNames(
|
||||
'bg-upage-elements-borderColor',
|
||||
orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
|
||||
className,
|
||||
)}
|
||||
orientation={orientation}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Separator;
|
||||
Reference in New Issue
Block a user