diff icon
diff from Codicons by Microsoft Corporation · Regular · CC-BY-4.0 Attribution required.
- Name
- diff
- Set
- Codicons
- Style
- Regular
- Viewbox
- 16×16
- License
- CC BY 4.0
The same icon in other sets
Related icons in Codicons
Use the diff icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><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>
React
import type { SVGProps } from "react";
export function CodiconDiff(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><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>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><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> </template>
CSS
.icon-diff {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M5.5%202h-3C1.673%202%201%202.673%201%203.5v9c0%20.827.673%201.5%201.5%201.5h3c.827%200%201.5-.673%201.5-1.5v-9C7%202.673%206.327%202%205.5%202m-3%201h3a.5.5%200%200%201%20.5.5V5H2V3.5a.5.5%200%200%201%20.5-.5m3%2010h-3a.5.5%200%200%201-.5-.5V6h4v6.5a.5.5%200%200%201-.5.5m8-11h-3C9.673%202%209%202.673%209%203.5v9c0%20.827.673%201.5%201.5%201.5h3c.827%200%201.5-.673%201.5-1.5v-9c0-.827-.673-1.5-1.5-1.5m-3%201h3a.5.5%200%200%201%20.5.5V8h-4V3.5a.5.5%200%200%201%20.5-.5m3%2010h-3a.5.5%200%200%201-.5-.5V10h4v2.5a.5.5%200%200%201-.5.5%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M5.5%202h-3C1.673%202%201%202.673%201%203.5v9c0%20.827.673%201.5%201.5%201.5h3c.827%200%201.5-.673%201.5-1.5v-9C7%202.673%206.327%202%205.5%202m-3%201h3a.5.5%200%200%201%20.5.5V5H2V3.5a.5.5%200%200%201%20.5-.5m3%2010h-3a.5.5%200%200%201-.5-.5V6h4v6.5a.5.5%200%200%201-.5.5m8-11h-3C9.673%202%209%202.673%209%203.5v9c0%20.827.673%201.5%201.5%201.5h3c.827%200%201.5-.673%201.5-1.5v-9c0-.827-.673-1.5-1.5-1.5m-3%201h3a.5.5%200%200%201%20.5.5V8h-4V3.5a.5.5%200%200%201%20.5-.5m3%2010h-3a.5.5%200%200%201-.5-.5V10h4v2.5a.5.5%200%200%201-.5.5%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/codicon/diff.svg?color=%231a73e8&size=48