@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
14 lines (13 loc) • 576 B
TypeScript
import * as React from 'react';
import { SxProp } from '../../system';
import { AsProp, ChildrenProp, LiteralUnion } from '../../types';
export declare type ModalSize = '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
export interface ModalProps extends AsProp, ChildrenProp, SxProp {
isOpen: boolean;
onClose?: () => void;
size?: LiteralUnion<ModalSize>;
closeOnEsc?: boolean;
closeOnOverlayClick?: boolean;
disableFocusTrap?: boolean;
}
export declare const Modal: React.FC<ModalProps>;