UNPKG

861 BTypeScriptView Raw
1import type { PortalProps } from '@rc-component/portal';
2import * as React from 'react';
3import type { DrawerPanelAccessibility, DrawerPanelEvents } from './DrawerPanel';
4import type { DrawerPopupProps } from './DrawerPopup';
5import type { DrawerClassNames, DrawerStyles } from './inter';
6export type Placement = 'left' | 'top' | 'right' | 'bottom';
7export interface DrawerProps extends Omit<DrawerPopupProps, 'prefixCls' | 'inline' | 'scrollLocker'>, DrawerPanelEvents, DrawerPanelAccessibility {
8 prefixCls?: string;
9 open?: boolean;
10 onClose?: (e: React.MouseEvent | React.KeyboardEvent) => void;
11 destroyOnClose?: boolean;
12 getContainer?: PortalProps['getContainer'];
13 panelRef?: React.Ref<HTMLDivElement>;
14 classNames?: DrawerClassNames;
15 styles?: DrawerStyles;
16}
17declare const Drawer: React.FC<DrawerProps>;
18export default Drawer;