Slash
The slash icon represents a programming concept, specifically a division or separation in code.
Exports at 24 × 24 px
Code
Slash in your framework
In any framework. Customize it above, and the code follows.
export const SlashIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" {...props}>
<path fill="currentColor" d="M98.99 408.397s4.889-4.442 8.394-1.61c.344.278.487.677.462 1.178L430.072 86.591c-.232-.234-.191-.535.143-.768c2.02-1.413 11.67-20.764 8.651-20.866l-28.65 27.383c-2.86 1.818-4.684 2.692-5.748 2.891c-10.435 8.636-27.88 27.213-55.694 56.89l55.313-59.922c2.032-3.805 7.201-10.063 9.108-12.463c5.951-7.492 15.493-15.797 15.493-15.797l-4.326-.254s-6.528 5.992-9.357 8.614s-6.165 2.328-6.165 2.328c-8.398 9.67-26.125 21.205-26.125 21.205l14.582-23.902s-23.173 19.791-50.038 38.83c-26.596 18.85-57.476 36.633-63.562 40.573c-11.604 7.51 1.543-8.584 3-16.653c0 0-14.908 21.116-30.87 34.736c-18.083 15.428 10.512-22.522 10.512-22.522L12.91 402.412l-2.391 4.375s31.553-31.214 35.964-30.875a3.9 3.9 0 0 1 1.572.442l.084-.1l63.425-61.284c-28.553 28.718-54.376 54.318-62.973 61.757c1.921 1.69 1.06 5.589-1.09 8.007c-2.714 3.054-31.546 30.779-34.035 33.019c-2.49 2.24-2.608 4.642-2.608 4.642c1.036 2.039 15.622-11.869 17.643-13.232C30.75 407.645 0 440.377 0 440.377l4.75-2.375s19.679-20.018 22.393-16.965s-8.991 13.063-8.991 13.063c-.51 4.92-8.069 12.631-17.813 20.866c0 0 1.018 1.866 4.241-.678c3.224-2.545 61.58-58.358 61.58-58.358s9.991-3.768 49.933-43.152c0 0-40.344 43.791-43.316 47.733c-7.804 10.348-33.25 32.74-33.25 32.74l-.51 8.483l-24.428 24.598v2.545l66.161-62.09l32.4-30.725l-30.076 34.802l58.863-55.426L15.982 483.76s4.428-2.952 9.15-4.428c4.28-1.337 50.494-46.169 73.858-70.935m41.45-124.09l69.638-69.371s-12.561 13.55-47.22 48.673zM511.134 35.608c-2.035 3.562-72.522 96.018-72.522 96.018s-56.746 71.504-78.63 111.2c-9.086 11.516-21.642 20.558-26.464 26.21c-3.961 4.645-5.304-2.703-7.634 0c-2.33 2.704-188.304 192.376-188.304 192.376l52.166-66.416l-84.737 86.518v-2.036l43.513-59.035l-71.25 69.977l12.47-20.611l-27.737 23.41l116.544-130.03S62.513 484.06 63.277 479.48s29.772-44.023 29.772-44.023s-39.95 40.46-46.058 45.804s-9.03.926-9.03.926s20.793-21.108 40.387-41.247c12.44-12.787 25.4-24.797 28.701-30.741L431.16 86.946c2.155.114 7.097-1.617 14.493-9.775c11.536-12.723 21.205-22.732 21.205-22.732L475 53.421l29.688-34.607s4.58-.509 4.58 2.375s3.732-.17 1.866 3.223s-4.92 7.125-2.375 6.956c2.545-.17 4.411.678 2.375 4.24"/>
</svg>
);Other libraries
Slash in 8 more libraries
Each library draws it its own way. Open one to compare.
File Icons
More like it
Icons that share its tags, in the same style.
Skip the copy and paste. With Pro, your AI agent finds and installs any File Icons icon from a prompt.
Get ProTags
Browse by tag
Slash is tagged file, development, programming and 3 more. Related tags follow; each opens its icons from every library.
Pricing
File Icons MCP, with Pro
Ask for Slash or any of 930 File Icons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Slash icon means and where it's used, then how to install, style, label and license it.
The slash icon represents a programming concept, specifically a division or separation in code. It is often used to indicate a distinction or a separation between different parts of a program. In the context of file icons, the slash icon may represent a specific type of file or a file operation. The slash icon is commonly used in programming languages to denote a comment or a division.
In software development, the slash icon appears in various tools and platforms. For example, it may be used in integrated development environments (IDEs) to indicate a comment or a section of code. It may also be used in version control systems to represent a branch or a merge.
From a UX perspective, the slash icon communicates a sense of separation or distinction. It helps users understand that there is a division or a separation between different parts of a program or a file. The slash icon can also be used to indicate a specific action or operation, such as a cut or a division.
Slash is one of 930 icons in File Icons, made by John Gardner and released under ISC. It is drawn on a 512 × 512 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds SlashIcon to components/icons/file-icons-slash.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed SlashIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Slash icon, or any of 930 File Icons icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 512 × 512 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Slash", so screen readers say what it does.
Yes. SlashIcon passes every SVG prop to the svg element, so <SlashIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. ISC allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: ISC only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming File Icons, John Gardner and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Slash. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are file, development, programming, react, component and icons. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Slash in another set.
4.9 out of 5 from 150+ developers
Install Slash from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro