Diff icon
A hand-drawn diff icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Interface
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
diff
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX DiffIcon.tsx
import { SvgXml } from "react-native-svg";
const DiffIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(0 1.5)"><g><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" x2="12" y1="3.5" y2="11.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="8" x2="16" y1="7.5" y2="7.5"></line></g><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="7.5" x2="16.5" y1="17.5" y2="17.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="4.5" x2="19.5" y1="13.5" y2="13.5"></line></g></svg>`;
<SvgXml xml={DiffIcon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG diff.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(0 1.5)"><g><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" x2="12" y1="3.5" y2="11.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="8" x2="16" y1="7.5" y2="7.5"></line></g><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="7.5" x2="16.5" y1="17.5" y2="17.5"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="4.5" x2="19.5" y1="13.5" y2="13.5"></line></g></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/diff.svg" width="24" height="24" alt="Diff" /> Related icons
File Diff
Message Square Diff
A Arrow Down
A Arrow Up
A Large Small
Align Center
Align Center Horizontal
Align Center Vertical
Align End Horizontal
Align End Vertical
Align Horizontal Distribute Center
Align Horizontal Distribute End
Align Horizontal Distribute Start
Align Horizontal Justify Center
Align Horizontal Justify End
Align Horizontal Justify Start
Align Horizontal Space Around
Align Horizontal Space Between