@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
35 lines (34 loc) • 1.11 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;
};
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 }: DialogProps) => import("react/jsx-runtime").JSX.Element;
export {};