Move stuff around

This commit is contained in:
Gregory Schier
2023-03-13 23:30:14 -07:00
parent 02574cf5e0
commit a209a486aa
51 changed files with 52 additions and 202 deletions

View File

@@ -0,0 +1,23 @@
import * as Separator from '@radix-ui/react-separator';
import classnames from 'classnames';
interface Props {
orientation?: 'horizontal' | 'vertical';
decorative?: boolean;
className?: string;
}
export function Divider({ className, orientation = 'horizontal', decorative }: Props) {
return (
<Separator.Root
className={classnames(
className,
'bg-gray-50',
orientation === 'horizontal' && 'w-full h-[1px]',
orientation === 'vertical' && 'h-full w-[1px]',
)}
orientation={orientation}
decorative={decorative}
/>
);
}