Drawer
A panel that slides in from an edge of the screen, with swipe-to-dismiss and snap-point support. Uses @base-ui/react (not react-aria-components), so its API and data attributes differ from this repo's other overlays.
Installation
CLI
Manual
- 1
Register the @fma-ui namespace in components.json (once)
components.json{ "registries": { "@fma-ui": "https://ui.fmartinsandre.dev.br/r/{name}.json" } } - 2
Add the item
pnpm dlx shadcn@latest add @fma-ui/drawerFiles land in
components/fma-ui/drawer.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- @base-ui/react@^1.8.0cn@^0.4.0
- Registry
- None