UNPKG

828 BTypeScriptView Raw
1import * as React from 'react';
2import { Omit } from '@material-ui/types';
3import { DrawerProps } from '../Drawer';
4
5export interface SwipeableDrawerProps extends Omit<DrawerProps, 'onClose' | 'open'> {
6 disableBackdropTransition?: boolean;
7 disableDiscovery?: boolean;
8 disableSwipeToOpen?: boolean;
9 hysteresis?: number;
10 minFlingVelocity?: number;
11 onClose: React.ReactEventHandler<{}>;
12 onOpen: React.ReactEventHandler<{}>;
13 open: boolean;
14 SwipeAreaProps?: object;
15 swipeAreaWidth?: number;
16}
17
18/**
19 *
20 * Demos:
21 *
22 * - [Drawers](https://mui.com/components/drawers/)
23 *
24 * API:
25 *
26 * - [SwipeableDrawer API](https://mui.com/api/swipeable-drawer/)
27 * - inherits [Drawer API](https://mui.com/api/drawer/)
28 */
29declare const SwipeableDrawer: React.ComponentType<SwipeableDrawerProps>;
30
31export default SwipeableDrawer;