swipeable-drawer
v4.9.10arrow_drop_downName | Type | Description |
---|---|---|
anchor (required) | 'left' | 'top' | 'right' | 'bottom' | Side on which to attach the discovery area. |
classes (required) | object | |
className | string | |
width (required) | number | The width of the left most (or right most) area in pixels where the drawer can be swiped open from. |
anchor | 'left' | 'top' | 'right' | 'bottom' | |
children | node | The content of the component. |
disableBackdropTransition | bool | Disable the backdrop transition. This can improve the FPS on low-end devices. |
disableDiscovery | bool | If |
disableSwipeToOpen | bool | If |
hideBackdrop | bool | |
hysteresis | number | Affects how far the drawer must be opened/closed to change his state. Specified as percent (0-1) of the width of the drawer |
minFlingVelocity | number | Defines, from which (average) velocity on, the swipe is defined as complete although hysteresis isn’t reached. Good threshold is between 250 - 1000 px/s |
ModalProps | {"BackdropProps":"{\"component\":\"custom\"}"} | |
onClose (required) | function | The event source of the callback. |
onOpen (required) | function | The event source of the callback. |
open (required) | bool | If |
PaperProps | {"component":"custom","style":"object"} | |
SwipeAreaProps | object | The element is used to intercept the touch events on the edge. |
swipeAreaWidth | number | The width of the left most (or right most) area in pixels where the drawer can be swiped open from. |
transitionDuration | number | {"enter":"number","exit":"number"} | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. |
variant | 'permanent' | 'persistent' | 'temporary' |