You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Animation duration when the bottom drawer is opened
No
closeDuration
number
300
Animation duration when the bottom drawer is closed
No
onOpen
function
null
Callback function when the bottom drawer is opened
No
onClose
function
null
Callback function when the bottom drawer is closed
No
onBackdropPress
function
true
Callback function when the backdrop is pressed
No
onBackPress
function
null
Callback function when the hardware back button is pressed
No
closeOnPressBack
boolean
true
Setting this true will allow the bottom drawer to close when hardware back is pressed (only on android)
No
closeOnBackdropPress
boolean
true
Setting this true will allow the bottom drawer to close when backdrop is pressed
No
openOnMount
boolean
false
Setting this true will automatically open the bottom drawer when the parent component is mounted
No
enableSnapping
boolean
false
Set this to true when you want to snap the bottom drawer to multiple heights
No
snapPoints
number[]
[400]
Points for the bottom sheet to snap to, points should be sorted from bottom to top. It accepts array of number. Example:[300, 500, 700]
Yes, ifenableSnapping istrue
backdropColor
string
#000
Color of the backdrop
No
backdropOpacity
number
0.5
Opacity of the backdrop
No
customStyles
object
{}
Add your custom styles here!
No
overDrag
boolean
true
Setting this true will allow the bottom sheet to be overdragged
No
initialIndex
number
0
The initial index out ofsnapPoints when the bottom sheet is opened
No
initialHeight
number
420
The initial height of the bottom sheet when opened.Note: This prop is not available whenenableSnapping is set totrue
No
safeTopOffset
number
50
Minimum safe distance from top while dragging the sheet or keyboard is opened
No
Available Methods
These methods can be accessed by bottom drawer reference oruseBottomDrawer hook.
open
Opens the bottom drawer
typeopen=(// open at provided sheetHeightsheetHeight?:number,)=>void;
NOTE:sheetHeight is only read whenenableSnapping is set tofalse. IfenableSnapping istrue, then the bottom sheet will be opened at index 0 out ofsnapPoints.