Component packs › Threshold › Push Drawer

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.

Push Drawer props

PropTypeDefaultDescription
titlestring
nav{ label: string; count?: number }[]
selectednumber
onSelect(index: number) => void
theme"light" | "dark"
autoplaynumber | falseShowcase mode: opens, picks an item and closes every N ms while visible.

Methods on the ref

Use it in React

import PushDrawer from './PushDrawer';

<PushDrawer />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Threshold

Good for: Dialogs and drawers.