diff --git a/src/components/dialog/index.tsx b/src/components/dialog/index.tsx index d0463fb..f1bfa8d 100644 --- a/src/components/dialog/index.tsx +++ b/src/components/dialog/index.tsx @@ -1,7 +1,8 @@ -import { type ReactNode } from 'react'; +import { type CSSProperties, type ReactNode } from 'react'; import { Dialog as RDialog } from 'radix-ui'; import { X } from '@phosphor-icons/react'; import { IconButton } from '../icon-button'; +import { cx } from '../utils'; export const Dialog = ({ trigger, @@ -13,6 +14,9 @@ export const Dialog = ({ defaultOpen, onOpenChange, modal, + className, + contentClassName, + style, }: { trigger?: ReactNode; title: string; @@ -23,12 +27,15 @@ export const Dialog = ({ defaultOpen?: boolean; onOpenChange?: (o: boolean) => void; modal?: boolean; + className?: string; + contentClassName?: string; + style?: CSSProperties; }) => ( {trigger && {trigger}} - + {title} {description && (