1 | import type { PortalProps } from '@rc-component/portal';
|
2 | import * as React from 'react';
|
3 | import type { DrawerPanelAccessibility, DrawerPanelEvents } from './DrawerPanel';
|
4 | import type { DrawerPopupProps } from './DrawerPopup';
|
5 | import type { DrawerClassNames, DrawerStyles } from './inter';
|
6 | export type Placement = 'left' | 'top' | 'right' | 'bottom';
|
7 | export 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 | }
|
17 | declare const Drawer: React.FC<DrawerProps>;
|
18 | export default Drawer;
|