Skip to content

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

PropTypeDefaultDescription
itemsFanMenuItem[]"5 sample items"Menu options. Each one is either a link (href) or a button (onSelect).
labelstring"Menu"Label on the center button. Also the menu's accessible name.
spreadnumber150Total angle the fan opens, in degrees.
radiusnumber170Distance 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".
paperstring"#FFFFFF"Color of the fan paper.
ribstring"#E8452C"Color of the ribs and the paper edge.
buttonstring"#E8452C"Color of the center button and of the active option highlight.
textColorstring"#111111"Color of the option text.
defaultOpenbooleanfalseIf true, the fan starts open (it unfolds on mount).
onChange(open: boolean) => voidundefinedCalled every time the menu opens or closes.
classNamestring""Extra CSS class for the container.
styleCSSProperties"{}"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 license

2Install Fan Menu

npx shadcn@latest add @furin-pro/fan-menu

Dependencies

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.

Keep exploring

  • A confirmation button with an ink stamp.

    Interaction

  • 3D card with an iridescent foil.

    Interaction

  • Magnet

    Free

    Pulls any element toward the cursor.

    Interaction