Diff icon
codicon:diff
The Diff icon (codicon:diff) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Codicons
- Author
- Microsoft Corporation
- License
- CC-BY-4.0
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M5.5 2h-3C1.673 2 1 2.673 1 3.5v9c0 .827.673 1.5 1.5 1.5h3c.827 0 1.5-.673 1.5-1.5v-9C7 2.673 6.327 2 5.5 2m-3 1h3a.5.5 0 0 1 .5.5V5H2V3.5a.5.5 0 0 1 .5-.5m3 10h-3a.5.5 0 0 1-.5-.5V6h4v6.5a.5.5 0 0 1-.5.5m8-11h-3C9.673 2 9 2.673 9 3.5v9c0 .827.673 1.5 1.5 1.5h3c.827 0 1.5-.673 1.5-1.5v-9c0-.827-.673-1.5-1.5-1.5m-3 1h3a.5.5 0 0 1 .5.5V8h-4V3.5a.5.5 0 0 1 .5-.5m3 10h-3a.5.5 0 0 1-.5-.5V10h4v2.5a.5.5 0 0 1-.5.5"/></svg>How to use the Diff icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:diff" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:diff" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:diff" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--diff]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:diff"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:diff"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/diff.svg" alt="Diff icon" width="24" height="24">Related icons in Codicons
Diff icon in other icon sets
Diff icon FAQ
Is the Diff icon free for commercial use?
Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Diff icon in React?
Install @iconify/react and render <Icon icon="codicon:diff" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Diff icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/diff.svg" alt="Diff icon">, or paste the SVG code inline to style it with CSS.