UNPKG

@slashid/react

Version:

React SDK for the /id platform

30 lines 1.31 kB
import { ReactNode } from "react"; export type DialogProps = { /** Dialog content */ children: ReactNode; /** Dialog trigger */ trigger: ReactNode; /** Dialog open state */ open: boolean; /** Dialog open state change handler */ onOpenChange: (open: boolean) => void; /** Dialog icon */ icon?: ReactNode; /** Dialog custom portal container */ container?: HTMLElement | (() => HTMLElement | null) | null; /** Dialog content container class name */ className?: string; /** When this boolean is set to `false`, the close button is hidden and dialog cannot be closed by clicking on the overlay */ dismissable?: boolean; /** * The modality of the dialog. * When set to `true`, interaction with outside elements will be disabled and only dialog content will be visible to screen readers. * When set to `false`, interaction with outside elements will be enabled and all content will be visible to screen readers. */ modal?: boolean; }; /** * Dialog component built on top of Radix Dialog primitives. */ export declare const Dialog: ({ children, trigger, open, onOpenChange, icon, className, container, dismissable, modal, }: DialogProps) => import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=index.d.ts.map