Skip to content
  • Android
  • iOS
  • Web

Drawer

Reveal a panel from the edge of a screen.

Engine API NDrawernayan-ui/components

Live examples

Mount NDrawer around a screen or navigator. The open state can be controlled by the screen or by useNDrawer.

Example.tsx

Navigation

Attributes

NDrawer attributes
NameTypeDefaultDetails
accessibilityLabelstringOptional
childrenReactNodeRequiredNavigator/page content is retained. Routing belongs to the host app.
defaultOpenbooleanOptional
drawerContentReactNodeRequired
drawerStyleRecord<string, unknown>Optional
edgeWidthnumberOptional
enabledbooleanOptional
isOpenbooleanOptional
onOpenChange((open: boolean) => void)Optional
overlayColorstringOptional
side"left" | "right"Optional
swipeEnabledbooleanOptional
widthnumberOptional

Tags