mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
13 lines
268 B
TypeScript
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;
|