Component packs › Shuffle › Fan Menu

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.

Fan Menu props

PropTypeDefaultDescription
itemsstring[]
labelstringText read out for the closed deck.
openboolean
onSelect(index: number, item: string) => void
autoplaynumber | falseShowcase mode: opens, browses and closes every N ms while visible.

Methods on the ref

Use it in React

import FanMenu from './FanMenu';

<FanMenu />

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

More in Shuffle

Good for: Skeuomorphic UI.