bolt.diy / app /components /ui /Separator.tsx
Ashhar
sync with bolt.diy
c0a9bce
raw
history blame contribute delete
581 Bytes
import * as SeparatorPrimitive from '@radix-ui/react-separator';
import { classNames } from '~/utils/classNames';
interface SeparatorProps {
className?: string;
orientation?: 'horizontal' | 'vertical';
}
export const Separator = ({ className, orientation = 'horizontal' }: SeparatorProps) => {
return (
<SeparatorPrimitive.Root
className={classNames(
'bg-bolt-elements-borderColor',
orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',
className,
)}
orientation={orientation}
/>
);
};
export default Separator;