'use client' import * as SeparatorPrimitive from '@radix-ui/react-separator' import { forwardRef } from 'react' import { tv } from 'tailwind-variants' const separator = tv({ slots: { root: 'shrink-0 bg-border', }, variants: { variant: { default: {}, weak: { root: 'opacity-50', }, }, orientation: { vertical: { root: 'min-h-full w-[0.0625rem]', }, horizontal: { root: 'h-[0.0625rem] min-w-full', }, }, }, defaultVariants: { variant: 'default', orientation: 'horizontal', }, }) const Separator = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >((props, ref) => { const { root } = separator({ orientation: props.orientation }) return ( ) }) Separator.displayName = SeparatorPrimitive.Root.displayName export default Separator export { separator, SeparatorPrimitive }