Mobile Nav Drawer

A hamburger button that opens a right side navigation drawer as a modal dialog, with a close button and links that dismiss it on tap. Built in React.

src/registry/ui/mobile-nav-drawer.tsx/r/mobile-nav-drawer.json

Installation#

bash
npx shadcn@latest add @minidev/mobile-nav-drawer

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/mobile-nav-drawer.json

Usage#

tsx
import { MobileNavDrawer } from "@/components/ui/mobile-nav-drawer"

export function Example() {
  return <MobileNavDrawer />
}

API reference#

MobileNavDrawer props
PropTypeDefault
classNamestring-

Dependencies#

npm

lucide-react

Built from

All navigation components

Learn more