ICONYZ
English
Heart Solid icon from Basil

Heart Solid icon

basil:heart-solid

The Heart Solid icon (basil:heart-solid) is a free SVG icon from the Basil set by Craftwork. It is drawn on a 24 × 24 grid. Basil icons 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
Basil
Author
Craftwork
License
CC-BY-4.0
Size
24 × 24
Category
Status
Tags
heartsolid
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="M8.4 5.25c-2.78 0-5.15 2.08-5.15 4.78c0 1.863.872 3.431 2.028 4.73c1.153 1.295 2.64 2.382 3.983 3.292l2.319 1.57a.75.75 0 0 0 .84 0l2.319-1.57c1.344-.91 2.83-1.997 3.982-3.292c1.157-1.299 2.029-2.867 2.029-4.73c0-2.7-2.37-4.78-5.15-4.78c-1.434 0-2.695.672-3.6 1.542c-.905-.87-2.167-1.542-3.6-1.542"/></svg>

How to use the Heart Solid icon

React

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

<Icon icon="basil:heart-solid" width="24" />

Vue

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

<template>
  <Icon icon="basil:heart-solid" width="24" />
</template>

Svelte

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

<Icon icon="basil:heart-solid" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="basil:heart-solid"></iconify-icon>

HTML image

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

Related icons in Basil

Heart Solid icon in other icon sets

Heart Solid icon FAQ

Is the Heart Solid icon free for commercial use?

Yes. Basil icons 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 Heart Solid icon in React?

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

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

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

Browse all Basil icons →