gentleface

Gentleface › Layout & interface › menu

menu icon

Menu: menu, navigation menu, hamburger menu, main menu. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated, switches to x menu-x · line-round

Top and bottom lines swing on their left ends and pass through a chevron into the X, while the middle line retracts into the point where they meet.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To switch on click, run 0.7 s to 1.8 s and hold, then 2.2 s to 2.95 s to come back. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.856 3.144C13.952 3.241 14 3.359 14 3.5C14 3.641 13.952 3.759 13.856 3.856C13.759 3.952 13.641 4 13.5 4L2.5 4C2.359 4 2.241 3.952 2.144 3.856C2.048 3.759 2 3.641 2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L13.5 3C13.641 3 13.759 3.048 13.856 3.144ZM13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L2.5 8C2.359 8 2.241 7.952 2.144 7.856C2.048 7.759 2 7.641 2 7.5C2 7.359 2.048 7.241 2.144 7.144C2.241 7.048 2.359 7 2.5 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144ZM2.144 11.856C2.048 11.759 2 11.641 2 11.5C2 11.359 2.048 11.241 2.144 11.144C2.241 11.048 2.359 11 2.5 11L13.5 11C13.641 11 13.759 11.048 13.856 11.144C13.952 11.241 14 11.359 14 11.5C14 11.641 13.952 11.759 13.856 11.856C13.759 11.952 13.641 12 13.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856Z"/></svg>
React
// Gentleface "menu" (line-round), MIT. https://gentleface.com/icons/menu
import type { SVGProps } from 'react';

export function MenuIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.856 3.144C13.952 3.241 14 3.359 14 3.5C14 3.641 13.952 3.759 13.856 3.856C13.759 3.952 13.641 4 13.5 4L2.5 4C2.359 4 2.241 3.952 2.144 3.856C2.048 3.759 2 3.641 2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L13.5 3C13.641 3 13.759 3.048 13.856 3.144ZM13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L2.5 8C2.359 8 2.241 7.952 2.144 7.856C2.048 7.759 2 7.641 2 7.5C2 7.359 2.048 7.241 2.144 7.144C2.241 7.048 2.359 7 2.5 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144ZM2.144 11.856C2.048 11.759 2 11.641 2 11.5C2 11.359 2.048 11.241 2.144 11.144C2.241 11.048 2.359 11 2.5 11L13.5 11C13.641 11 13.759 11.048 13.856 11.144C13.952 11.241 14 11.359 14 11.5C14 11.641 13.952 11.759 13.856 11.856C13.759 11.952 13.641 12 13.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856Z" />
    </svg>
  );
}
Vue
Vue: see /icons/menu.md
Svelte
Svelte: see /icons/menu.md
HTML img
HTML img: see /icons/menu.md
CSS
CSS: see /icons/menu.md
Data URL
Data URL: see /icons/menu.md
Sprite
Sprite: see /icons/menu.md
SwiftUI
SwiftUI: see /icons/menu.md
Compose
Compose: see /icons/menu.md
Android XML
Android XML: see /icons/menu.md
Flutter
Flutter: see /icons/menu.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { MenuIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
menu, navigation menu, hamburger menu, main menu, nav menu, mobile menu, medium density, density medium
Alternatives
Don’t confuse with
  • list: a bulleted list has bullets; the menu is three equal bars
Also fits
  • sidebar: the hamburger navigation menu on narrow screens (menu)
Not for
  • rearrange (use reorder): three bars are the menu
  • burger (use burger): menu is the 'hamburger' icon
  • dropdown menu (use dropdown-menu): three bars open the navigation menu (menu), not a dropdown
  • drag handle (use grip-vertical): three bars open the navigation menu (menu); the iOS reorder control looks alike, so prefer the dot grip
  • align justify (use align-justify): equal bars without a text rhythm read as the navigation menu
  • list (use list): three bars without bullets are the navigation menu
Tags
hamburger, menu, navigation, bars
Category
Layout & interface
Component name
MenuIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 1

More layout & interface icons

For agents

Metadata: /icons/menu.json · Markdown: /icons/menu.md · SVG: https://gentleface.com/svg/{style}/16/menu.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/menu.png