Drawer

Native <dialog> from the bottom edge. Platform focus trap and backdrop.

Notes

A bottom panel. Escape closes it.

Up

Notes

A bottom panel. Escape closes it.

npx @noordvc/raster-cli add drawer
<dialog class="rs-drawer" open><span class="rs-drawer-title">Notes</span><p class="rs-drawer-body">A bottom panel. Escape closes it.</p></dialog>
import { Drawer, DrawerBody, DrawerTitle } from "@/components/raster/drawer";

<Drawer open={open} onClose={() => setOpen(false)}>
  <DrawerTitle>Notes</DrawerTitle>
  <DrawerBody>A bottom panel. Escape closes it.</DrawerBody>
</Drawer>
.rs-drawer.rs-drawer-title.rs-drawer-body