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

19 lines
325 B
TypeScript
Raw Normal View History

import clsx from 'clsx';
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 (
<div className={clsx(
margins,
{
'border-x h-full': vertical,
'border-y w-full': !vertical
}
)}/>);
2023-07-18 14:55:40 +03:00
}
export default Divider;