ProInteraction
Fan Menu
A menu that unfolds like a fan, with staggered options and spring animation. Accepts links and buttons.
- Plan
- Pro · commercial license
- Dependencies
- React only
- Props
- 13 (9 adjustable)
Included in Pro and Lifetime. See pricing
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | FanMenuItem[] | "5 sample items" | Menu options. Each one is either a link (href) or a button (onSelect). |
label | string | "Menu" | Label on the center button. Also the menu's accessible name. |
spread | number | 150 | Total angle the fan opens, in degrees. |
radius | number | 170 | Distance in px from the center button to the options. |
direction | "up" | "down" | "left" | "right" | "up" | Which way the fan unfolds: "up", "down", "left" or "right". |
paper | string | "#FFFFFF" | Color of the fan paper. |
rib | string | "#E8452C" | Color of the ribs and the paper edge. |
button | string | "#E8452C" | Color of the center button and of the active option highlight. |
textColor | string | "#111111" | Color of the option text. |
defaultOpen | boolean | false | If true, the fan starts open (it unfolds on mount). |
onChange | (open: boolean) => void | undefined | Called every time the menu opens or closes. |
className | string | "" | Extra CSS class for the container. |
style | CSSProperties | "{}" | Inline styles for the container. |
Installation
With your license
1Set up the Pro registry once
Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.
Use my license2Install Fan Menu
npx shadcn@latest add @furin-pro/ fan-menuDependencies
- React
- 18 or later
- Other libraries
- none
- License
- commercial
Pro components install into your project: the code is yours and there's nothing else to download.