@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
40 lines (39 loc) • 1.3 kB
TypeScript
import React from "react";
export type DialogProps = {
open?: boolean;
onOpenChange?: (open: boolean) => void;
children: React.ReactNode;
className?: string;
containerClassName?: string;
fullWidth?: boolean;
fullHeight?: boolean;
fullScreen?: boolean;
scrollable?: boolean;
maxWidth?: keyof typeof widthClasses;
modal?: boolean;
onOpenAutoFocus?: (e: Event) => void;
onEscapeKeyDown?: (e: KeyboardEvent) => void;
onPointerDownOutside?: (e: Event) => void;
onInteractOutside?: (e: Event) => void;
/**
* If `true`, the dialog will not focus the first focusable element when opened.
*/
disableInitialFocus?: boolean;
portalContainer?: HTMLElement | null;
};
declare const widthClasses: {
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
"4xl": string;
"5xl": string;
"6xl": string;
"7xl": string;
full: string;
};
export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside, disableInitialFocus, portalContainer }: DialogProps) => React.JSX.Element;
export {};