Drawer
A drawer component that slides in from the edge of the screen.
// src/components/ui/drawer.tsx — a bottom-anchored Dialog with a drag handle. Same open/close island hooks.
Installation
$ bext ui add drawer
Copy and paste the following into src/components/ui/drawer.tsx.
// src/components/ui/drawer.tsx — a bottom-anchored Dialog with a drag handle. Same open/close island hooks.
This component is interactive — make sure the shared island is loaded (see Islands). It reacts to data-ui="drawer" hooks.
On This Page