Component packs › Shuffle › Fan Menu
Press the deck and the action cards fan out around their base, turning face up one by one; the card you aim at slides out along its own axis.
Fan Menu is a menu from Shuffle, a component pack with 6 card controls: Loaders, menus, lists and pickers made of playing cards. Price: $2 for the whole pack.
Built with: pivot fan, staggered flips, roving focus.
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 |
|---|---|---|---|
items | string[] | ||
label | string | Text read out for the closed deck. | |
open | boolean | ||
onSelect | (index: number, item: string) => void | ||
autoplay | number | false | Showcase mode: opens, browses and closes every N ms while visible. |
readonly open: booleanshow(): voidhide(): voiddestroy(): voidimport FanMenu from './FanMenu';
<FanMenu />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.