diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index c841b1cd6..5b4af0ff4 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -1,6 +1,7 @@ 'use client' import * as ModalPrimitive from '@radix-ui/react-dialog' +import { clsx } from 'clsx' import { motion, MotionProps } from 'framer-motion' import { PropsWithChildren, useEffect, useState } from 'react' @@ -24,6 +25,7 @@ export type ModalProps = { scroll?: boolean overlayProps?: MotionProps contentProps?: MotionProps + rootProps?: BoxProps } & styles.ContentVariants // const portalRoot = document.getElementById('portal') @@ -40,6 +42,7 @@ export const Modal = (props: PropsWithChildren) => { size = 'lg', overlayProps, contentProps, + rootProps = {}, } = props const { root } = useTheme() const [container, setContainer] = useState(null) @@ -51,7 +54,10 @@ export const Modal = (props: PropsWithChildren) => { return container ? ( - +