Component packs › Unfurl › Unroll Dropdown

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.

Unroll Dropdown props

PropTypeDefaultDescription
labelstring"Sort by"Shown before the choice. Default "Sort by".
optionsstring[]
valuenumber0Selected index. Default 0.
onChange(index: number, option: string) => void

Methods on the ref

Use it in React

import UnrollDropdown from './UnrollDropdown';

<UnrollDropdown />

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

More in Unfurl

Good for: Menus and popovers.