@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
16 lines (15 loc) • 610 B
TypeScript
import * as React from 'react';
import { SxProp } from '../../system';
import { AsProp, ChildrenProp, LiteralUnion } from '../../types';
export declare type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
export declare type DrawerSize = 'xs' | 'sm' | 'md' | 'lg';
export interface DrawerProps extends AsProp, ChildrenProp, SxProp {
isOpen: boolean;
onClose?: () => void;
anchor?: DrawerAnchor;
closeOnEsc?: boolean;
closeOnOverlayClick?: boolean;
disableFocusTrap?: boolean;
size?: LiteralUnion<DrawerSize>;
}
export declare const Drawer: React.FC<DrawerProps>;