ICONYZ
English
Onion icon from OpenMoji

Onion icon

openmoji:onion

The Onion icon (openmoji:onion) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
OpenMoji
Author
OpenMoji
License
CC-BY-SA-4.0
Size
72 × 72
Category
Food Drink
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><path fill="#f4aa41" d="m38.491 16.785l.017-.001a3.566 3.566 0 0 1-1.917-4.51l-3.065 1.94l-1.646 2.054s.138.763-.066.798C20.83 18.964 12.517 27.799 12.517 38.419c0 12.003 10.615 21.734 23.71 21.734s23.709-9.73 23.709-21.734c0-11.303-9.413-20.587-21.445-21.633"/><path fill="#e27022" d="M37.358 9.74s-2.485 5.756.583 7.205l-.017.001C49.956 17.992 59.37 27.276 59.37 38.58c0 12.003-10.615 20.409-23.71 20.409c0 0 8.029-1.912 13.08-8.498c4.307-5.618 6.311-13.788.812-23.203c-1.905-3.262-6.275-6.915-11.829-8.575c-.109-.032-1.412-.658-1.495-.735c-.437-.399-.721-1.554-.567-4.084a9.8 9.8 0 0 1 1.698-4.153"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m34.417 14.631l4.304-6.134a20 20 0 0 0-1.22 2.24c-2.787 6.103 2.123 6.374 2.123 6.374C51.11 18.61 59.936 27.59 59.936 38.444c0 11.903-10.615 21.552-23.71 21.552s-23.709-9.65-23.709-21.552c0-8.232 5.077-15.386 12.54-19.016a25 25 0 0 1 3.088-1.252l.248-.08q.162-.052.325-.101a25.5 25.5 0 0 1 3.283-.762m3.992 42.971l-5.797 2.59Zm4.938 2.59l-4.938-2.59v2.59"/><path d="M32.376 53.455c-2.33-2.343-3.983-8.237-3.983-15.137c0-5.805 1.17-10.897 2.928-13.763m-7.595 25.337c-1.755-1.765-3-6.206-3-11.405c0-4.373.88-8.21 2.205-10.369M49.28 49.892c1.755-1.765 3-6.206 3-11.405c0-4.373-.881-8.21-2.205-10.369M39.216 53.455c2.33-2.343 3.982-8.237 3.982-15.137c0-5.805-1.17-10.897-2.928-13.763"/></g></svg>

How to use the Onion icon

React

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

<Icon icon="openmoji:onion" width="24" />

Vue

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

<template>
  <Icon icon="openmoji:onion" width="24" />
</template>

Svelte

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

<Icon icon="openmoji:onion" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="openmoji:onion"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/openmoji/onion.svg" alt="Onion icon" width="24" height="24">

Onion icon in other icon sets

Onion icon FAQ

Is the Onion icon free for commercial use?

Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.

How do I use the Onion icon in React?

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

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

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

Browse all OpenMoji icons →