Component packs › Threshold › Push Drawer
The drawer slides in from its edge and pushes the page aside, easing it back and dimming it; drag it 1:1 and a flick decides.
Push Drawer is a drawer from Threshold, a component pack with 6 overlays: Dialogs, drawers and sheets that come out of where you tapped and go back into it. Price: $2 for the whole pack.
Built with: page moves with it, drag with flick, edge swipe to open.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
nav | { label: string; count?: number }[] | ||
selected | number | ||
onSelect | (index: number) => void | ||
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: opens, picks an item and closes every N ms while visible. |
readonly open: booleanshow(): voidclose(): voiddestroy(): voidimport PushDrawer from './PushDrawer';
<PushDrawer />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.