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

13 lines
264 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-11-10 15:34:59 +03:00
<div className={`${margins} ${vertical ? 'border-x h-full': 'border-y w-full'}`} />
2023-07-18 14:55:40 +03:00
);
}
2023-07-25 20:27:29 +03:00
export default Divider;