Component packs › Unfurl › Unroll Dropdown
The menu unrolls from its button like a sheet of paper, the roll thinning as it runs down and each option landing as the edge reaches it.
Unroll Dropdown is a dropdown from Unfurl, a component pack with 7 menus and popovers: Menus and popovers that grow from the exact point they came from and unroll like paper. Price: $2 for the whole pack.
Built with: paper unroll, one spring for sheet and items, radio menu.
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 |
|---|---|---|---|
label | string | "Sort by" | Shown before the choice. Default "Sort by". |
options | string[] | ||
value | number | 0 | Selected index. Default 0. |
onChange | (index: number, option: string) => void |
readonly value: numberreadonly open: booleansetOpen(open: boolean): voidselect(index: number, silent?: boolean): voiddestroy(): voidimport UnrollDropdown from './UnrollDropdown';
<UnrollDropdown />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Menus and popovers.