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

23 lines
412 B
TypeScript
Raw Normal View History

interface OverlayProps {
2023-12-08 00:33:47 +03:00
id?: string
children: React.ReactNode
position?: string
className?: string
layer?: string
}
function Overlay({
2023-12-08 00:33:47 +03:00
id, children, className,
position='top-0 right-0',
layer='z-pop'
}: OverlayProps) {
return (
<div className='relative'>
2023-12-08 00:33:47 +03:00
<div id={id} className={`absolute ${className} ${position} ${layer}`}>
{children}
</div>
</div>);
}
export default Overlay;