The Heroicons slash icon depicts a diagonal line and is commonly used to separate distinct elements or indicate division.
Common uses
- Separating navigation links
- Indicating a range (e.g., 1/3)
- Visual separator in tables or lists
Use it in React
Install
npm i @heroicons/reactImport & render
import { SlashIcon } from '@heroicons/react/24/outline';
<SlashIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<SlashIcon className="size-6" />24/solid
<SlashIcon className="size-6" />20/solid
<SlashIcon className="size-6" />16/solid
<SlashIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- slashdividerseparatordiagonal linestrike
FAQ
- What is the Heroicons slash icon used for?
- It's typically used to visually separate items or indicate division, like in navigation or data displays.
- How do I use the slash icon in React?
- You can import it using `import { SlashIcon } from '@heroicons/react/24/outline'` and then render the `<SlashIcon />` component.
- What is the license for Heroicons?
- Heroicons are released under the MIT license, allowing for free use in commercial and non-commercial projects.
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 →