ICONYZ
English
Heart icon from OpenSearch UI

Heart icon

oui:heart

The Heart icon (oui:heart) is a free SVG icon from the OpenSearch UI set by OpenSearch Contributors. It is drawn on a 24 × 24 grid. OpenSearch UI icons are released under the Apache 2.0 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
OpenSearch UI
Author
OpenSearch Contributors
License
Apache-2.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.402 3.098a3.75 3.75 0 0 0-5.304 5.304l5.558 5.27L8 14l5.892-5.588a3.75 3.75 0 1 0-5.294-5.313L8 3.697zM2.796 7.685a2.747 2.747 0 0 1 .01-3.88a2.75 2.75 0 0 1 3.889 0L8 5.111l1.305-1.306a2.75 2.75 0 1 1 3.89 3.89L8 12.62z"/></svg>

How to use the Heart icon

React

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

<Icon icon="oui:heart" width="24" />

Vue

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

<template>
  <Icon icon="oui:heart" width="24" />
</template>

Svelte

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

<Icon icon="oui:heart" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="oui:heart"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/oui/heart.svg" alt="Heart icon" width="24" height="24">

Heart icon in other icon sets

Heart icon FAQ

Is the Heart icon free for commercial use?

Yes. OpenSearch UI icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Heart icon in React?

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

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

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

Browse all OpenSearch UI icons →