import { styled } from 'styled-components'; import { forwardRef } from 'react'; import { cv } from '../..'; export interface DividerProps extends React.ComponentPropsWithRef<'div'> { color?: string; margin?: string; width?: string; } interface StyledDividerProps { $color: string; $margin?: string; $width?: string; } const StyledDivider = styled.div` position: relative; border-bottom: solid 1px ${(props) => props.$color}; ${(props) => props.$margin && `margin: ${props.$margin} 0px;`} ${(props) => props.$width && `width: ${props.$width};`} `; export const Divider = forwardRef((props, ref) => { const { color = cv.border, margin, width, ...rest } = props; return ( ); });