drawer
Side panel sliding from any edge. Built on <dialog>.
Preview
This overlay stays hidden until triggered — open it in the live demo →
Markup
<dialog class="drawer" data-side="right" id="X">…</dialog>Install
Import the component CSS (depends on base/tokens.css):
@import "@russfranky/shadcss/src/components/drawer.css";
…or copy it into your repo with the CLI:
npx @russfranky/shadcss-cli add drawer
Accessibility
Open via showModal(); native <dialog>; data-side edge
Classes
.drawer .drawer-header .drawer-title .drawer-description .drawer-body .drawer-footer .drawer-handle
Dependencies
base/tokens