UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

25 lines (24 loc) 856 B
import type { PropsWithChildren } from 'react'; export declare enum Backdrops { Dark = 0, Light = 1 } export declare enum Constraints { Default = 0, Screen = 1, Padded = 2 } export interface DialogProps { backdrop?: Backdrops; constraint?: Constraints; dismissable?: boolean; onDismiss?: () => void; open?: boolean; } declare function Dialog({ backdrop, children, constraint, dismissable, onDismiss, open, }: PropsWithChildren<DialogProps>): JSX.Element | null; declare namespace Dialog { var Actions: ({ children, }: PropsWithChildren<Record<string, unknown>>) => JSX.Element; var Content: ({ children, }: PropsWithChildren<Record<string, unknown>>) => JSX.Element; var Header: ({ children, }: PropsWithChildren<Record<string, unknown>>) => JSX.Element; } export default Dialog;