The Heroicons bars 2 icon depicts a stack of horizontal lines, commonly used to represent a menu, navigation, or a list of items.
Common uses
- Mobile navigation menu toggle
- Hamburger menu button
- Displaying a list of options
Use it in React
Install
npm i @heroicons/reactImport & render
import { Bars2Icon } from '@heroicons/react/24/outline';
<Bars2Icon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<Bars2Icon className="size-6" />24/solid
<Bars2Icon className="size-6" />20/solid
<Bars2Icon className="size-6" />16/solid
<Bars2Icon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- bars2hamburgermenunavigationlist
FAQ
- What does the bars 2 icon represent?
- It represents a stack of horizontal lines, often used for menus or lists in user interfaces.
- How do I use the bars 2 icon in React?
- Import it using: `import { Bars2Icon } from '@heroicons/react/24/outline'` and then use it as a React component.
- What is the license for Heroicons?
- Heroicons are released under the MIT license, allowing for free use.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →