Props
Attributes
- Graph
-
- Supertypes
-
trait WithChildren[VdomNode]trait PropTypesclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
The element is used to intercept the touch events on the edge.
The element is used to intercept the touch events on the edge.
Attributes
If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children. This can be useful in scenarios where the drawer is partially visible. You can customize it further with a callback that determines which children the user can drag over to open the drawer (for example, to ignore other elements that handle touch move events, like sliders).
If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children. This can be useful in scenarios where the drawer is partially visible. You can customize it further with a callback that determines which children the user can drag over to open the drawer (for example, to ignore other elements that handle touch move events, like sliders).
Value parameters
- {HTMLDivElement}
-
paper The drawer's paper element
- {TouchEvent}
-
event The 'touchstart' event
Attributes
The content of the component.
The content of the component.
Attributes
Disable the backdrop transition. This can improve the FPS on low-end devices.
Disable the backdrop transition. This can improve the FPS on low-end devices.
Attributes
If true
, touching the screen near the edge of the drawer will not slide in the drawer a bit to promote accidental discovery of the swipe gesture.
If true
, touching the screen near the edge of the drawer will not slide in the drawer a bit to promote accidental discovery of the swipe gesture.
Attributes
If true
, swipe to open is disabled. This is useful in browsers where swiping triggers navigation actions. Swipe to open is disabled on iOS browsers by default.
If true
, swipe to open is disabled. This is useful in browsers where swiping triggers navigation actions. Swipe to open is disabled on iOS browsers by default.
Attributes
Affects how far the drawer must be opened/closed to change its state. Specified as percent (0-1) of the width of the drawer
Affects how far the drawer must be opened/closed to change its state. Specified as percent (0-1) of the width of the drawer
Attributes
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
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
Attributes
Callback fired when the component requests to be closed.
Callback fired when the component requests to be closed.
Value parameters
- {React.SyntheticEvent<{}>}
-
event The event source of the callback.
Attributes
Callback fired when the component requests to be opened.
Callback fired when the component requests to be opened.
Value parameters
- {React.SyntheticEvent<{}>}
-
event The event source of the callback.
Attributes
If true
, the component is shown.
If true
, the component is shown.
Attributes
The width of the left most (or right most) area in px
that the drawer can be swiped open from.
The width of the left most (or right most) area in px
that the drawer can be swiped open from.
Attributes
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
Attributes
Inherited methods
Attributes
- Inherited from:
- PropTypes
Inherited fields
Attributes
- Inherited from:
- PropTypes