UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

29 lines 974 B
import type * as React from "react"; export interface ModalProps { isOpen: boolean; onClose: () => void; title?: string; children: React.ReactNode; size?: "sm" | "md" | "lg" | "xl"; className?: string; } /** * Modal component built on shadcn/ui Dialog * * Features: * ✅ Built-in focus trapping and restoration * ✅ Improved escape key handling * ✅ Better screen reader support * ✅ Portal rendering for z-index control * ✅ shadcn/ui styling with Tailwind * ✅ Proper ARIA attributes * * @param isOpen - Whether the modal is open * @param onClose - Called when the modal should be closed * @param title - Modal title for accessibility * @param children - Modal content * @param size - Modal size preset * @param className - Additional CSS classes */ export declare function Modal({ isOpen, onClose, title, children, size, className, }: ModalProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Modal.d.ts.map