The off-canvas "drawer" pattern is used primarily for top-level mobile navigation.
Property | Type | Required | Default | Description |
---|---|---|---|---|
drawerWidth | Number | false | 280 | Width (in px) of the drawer nav |
onRequestClose | Func | false | () => {} | Function called when the user clicks the overlay area of a drawer |
children | Node | false | - | Child elements to be rendered inside the Drawer |
active | Bool | false | - | Toggle visibility of the drawer |
right | Bool | false | - | Display the drawer on the right side of the screen |
drawerNavStyle | Node | false | - | Styles passed to the DrawerNav sub-component |