mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Add glassmorphism effects
This commit is contained in:
@@ -8,6 +8,7 @@ interface StyledDialogProps {
|
||||
children: ReactNode;
|
||||
onBackdropClick?: () => void;
|
||||
className?: string;
|
||||
afterChildren?: ReactNode;
|
||||
}
|
||||
|
||||
export function StyledDialog({
|
||||
@@ -15,7 +16,8 @@ export function StyledDialog({
|
||||
onOpenChange,
|
||||
children,
|
||||
onBackdropClick,
|
||||
className = ""
|
||||
className = "",
|
||||
afterChildren
|
||||
}: StyledDialogProps) {
|
||||
const transition: Transition = { duration: 0.3, type: "tween", ease: "easeInOut" };
|
||||
|
||||
@@ -60,6 +62,7 @@ export function StyledDialog({
|
||||
<div className="styled-dialog-content">
|
||||
{children}
|
||||
</div>
|
||||
{afterChildren}
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user