Component packs › Fidget › Menu Icon

Menu Icon

The outer bars slide together and only cross once they meet, knocking the middle bar out to the side.

Menu Icon is an icon toggle from Fidget, a component pack with 10 animated icons: Animated icons with working parts: hinges, pendulums, springs and gravity. Price: $2 for the whole pack.

Built with: rigid bars on springs, state-driven sequence, interruptible.

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.

Menu Icon props

PropTypeDefaultDescription
openbooleanfalse (menu)Shows the close cross. Default false (menu).
disabledboolean
labels{ open: string; close: string }Accessible names for both states.
sizenumberScale factor. 1 = 56 px button.
onChange(open: boolean) => void
autoplaynumber | falseShowcase mode: toggles itself every N ms while visible.

Methods on the ref

Use it in React

import MenuIcon from './MenuIcon';

<MenuIcon />

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

More in Fidget

Good for: Animated icons.