ICONYZ
English
Gift icon from BoxIcons v2

Gift icon

bx:gift

The Gift icon (bx:gift) is a free SVG icon from the BoxIcons v2 set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 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
BoxIcons v2
Author
Boxicons
License
MIT
Size
24 × 24
Tags
bx gift
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="M20 7h-1.209A5 5 0 0 0 19 5.5C19 3.57 17.43 2 15.5 2c-1.622 0-2.705 1.482-3.404 3.085C11.407 3.57 10.269 2 8.5 2C6.57 2 5 3.57 5 5.5c0 .596.079 1.089.209 1.5H4c-1.103 0-2 .897-2 2v2c0 1.103.897 2 2 2v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7c1.103 0 2-.897 2-2V9c0-1.103-.897-2-2-2m-4.5-3c.827 0 1.5.673 1.5 1.5C17 7 16.374 7 16 7h-2.478c.511-1.576 1.253-3 1.978-3M7 5.5C7 4.673 7.673 4 8.5 4c.888 0 1.714 1.525 2.198 3H8c-.374 0-1 0-1-1.5M4 9h7v2H4zm2 11v-7h5v7zm12 0h-5v-7h5zm-5-9V9.085L13.017 9H20l.001 2z"/></svg>

How to use the Gift icon

React

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

<Icon icon="bx:gift" width="24" />

Vue

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

<template>
  <Icon icon="bx:gift" width="24" />
</template>

Svelte

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

<Icon icon="bx:gift" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="bx:gift"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bx/gift.svg" alt="Gift icon" width="24" height="24">

Gift icon in other icon sets

Gift icon FAQ

Is the Gift icon free for commercial use?

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

How do I use the Gift icon in React?

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

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

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

Browse all BoxIcons v2 icons →