ICONYZ
English
Compare icon from andrsrxn/icons

Compare icon

andrsrxn:compare

The Compare icon (andrsrxn:compare) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
andrsrxn/icons
Author
Andrés Raxón
License
MIT
Size
24 × 24
Category
Tools, Editor, Layout
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><rect width="20.29" height="14.55" x="1.98" y="4.73" fill="currentColor" opacity=".2" rx="3"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.51 4.73H7.98c-2.83 0-4.24 0-5.12.87c-.88.88-.88 2.3-.88 5.13v2.54c0 2.83 0 4.25.88 5.13s2.3.87 5.12.87h3.53m0-16.97v19.4m7.88-16.94h.06A2.74 2.74 0 0 1 22.2 7.5m-2.63 11.76h.06c1.48 0 2.68-1.2 2.68-2.68m-.03-5.88v2.67m-7.85 5.88h1.94m-1.94-14.5h1.94"/></g></svg>

How to use the Compare icon

React

import { Icon } from "@iconify/react";

<Icon icon="andrsrxn:compare" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="andrsrxn:compare" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="andrsrxn:compare" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--compare]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:compare"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="andrsrxn:compare"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/andrsrxn/compare.svg" alt="Compare icon" width="24" height="24">

Compare icon in other icon sets

Compare icon FAQ

Is the Compare icon free for commercial use?

Yes. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Compare icon in React?

Install @iconify/react and render <Icon icon="andrsrxn:compare" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Compare icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/compare.svg" alt="Compare icon">, or paste the SVG code inline to style it with CSS.

Browse all andrsrxn/icons →