mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
22 lines
386 B
TypeScript
22 lines
386 B
TypeScript
![]() |
interface OverlayProps {
|
||
|
children: React.ReactNode
|
||
|
position?: string
|
||
|
className?: string
|
||
|
layer?: string
|
||
|
}
|
||
|
|
||
|
function Overlay({
|
||
|
children, className,
|
||
|
position='top-0 right-0',
|
||
|
layer='z-pop'
|
||
|
}: OverlayProps) {
|
||
|
return (
|
||
|
<div className='relative'>
|
||
|
<div className={`absolute ${className} ${position} ${layer}`}>
|
||
|
{children}
|
||
|
</div>
|
||
|
</div>);
|
||
|
}
|
||
|
|
||
|
export default Overlay;
|