mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-03-09 21:50:36 +00:00
23 lines
581 B
TypeScript
23 lines
581 B
TypeScript
|
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;
|