ConceptPortal-public/rsconcept/frontend/src/components/Common/Divider.tsx
2023-09-10 20:17:18 +03:00

13 lines
268 B
TypeScript

interface DividerProps {
vertical?: boolean
margins?: string
}
function Divider({ vertical, margins = 'mx-2' }: DividerProps) {
return (
<div className={`${margins} ${vertical ? 'border-x-2 h-full': 'border-y-2 w-full'}`} />
);
}
export default Divider;