Portal/rsconcept/frontend/src/components/ui/Overlay.tsx
IRBorisov 2759f10d09
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (18.x) (push) Has been cancelled
Initial commit
2024-06-07 20:17:03 +03:00

23 lines
514 B
TypeScript

import clsx from 'clsx';
import { CProps } from '../props';
interface OverlayProps extends CProps.Styling {
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;