ConceptPortal-public/rsconcept/frontend/src/components/Common/Divider.tsx

13 lines
268 B
TypeScript
Raw Normal View History

2023-07-20 17:11:03 +03:00
interface DividerProps {
vertical?: boolean
margins?: string
}
function Divider({ vertical, margins = 'mx-2' }: DividerProps) {
2023-07-18 14:55:40 +03:00
return (
2023-09-10 20:17:18 +03:00
<div className={`${margins} ${vertical ? 'border-x-2 h-full': 'border-y-2 w-full'}`} />
2023-07-18 14:55:40 +03:00
);
}
2023-07-25 20:27:29 +03:00
export default Divider;