The Heroicons bars 4 icon depicts a set of four horizontal bars, often used to represent a menu, navigation, or a list of items.
Common uses
- Hamburger menu button
- Navigation drawer trigger
- List item indicator
Use it in React
Install
npm i @heroicons/reactImport & render
import { Bars4Icon } from '@heroicons/react/24/outline';
<Bars4Icon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<Bars4Icon className="size-6" />24/solid
<Bars4Icon className="size-6" />20/solid
<Bars4Icon className="size-6" />16/solid
<Bars4Icon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- bars4menu iconnavigation iconhamburger iconlist icon
FAQ
- What is the bars 4 icon typically used for?
- It's commonly used to indicate a menu, navigation, or a list. It can serve as a trigger for a hamburger menu or navigation drawer.
- How do I use the bars 4 icon in React?
- You can import it from the Heroicons library like this: `import { Bars4Icon } from '@heroicons/react/24/outline'`. Then use it as a React component: `<Bars4Icon className="h-6 w-6" />`.
- What is the license for the bars 4 icon?
- The bars 4 icon is part of the Heroicons library, which is released under the MIT license.
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 →