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

34 lines
533 B
TypeScript
Raw Normal View History

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