Onion icon
whh:onion
The Onion icon (whh:onion) is a free SVG icon from the WebHostingHub Glyphs set by WebHostingHub. It is drawn on a 1024 × 1024 grid. WebHostingHub Glyphs icons are released under the Open Font 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
- WebHostingHub Glyphs
- Author
- WebHostingHub
- License
- OFL-1.1
- Size
- 1024 × 1024
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 1024q-108 0-199.5-24.5t-162-72T40 803.5T0 630q0-57 30-113t80.5-101T220 334.5T343 274q29-28 48-56t25.5-56t8.5-44t2-39q0-33 25-56t60-23v79q35 0 60 23t25 56q0 31 9.5 43.5T681 274q63 24 122.5 60t110 81.5T994 517t30 113q0 97-40 173.5t-110.5 124t-162 72T512 1024M192 640q0 115 50 199t134 123q-55-54-87.5-143.5T256 624q0-140 84-264q-66 50-107 122t-41 158m192 0q0-75 4-123t14.5-74t19-36t26.5-23q-22 8-43 25t-40.5 45t-32 71.5T320 622q0 148 55 236.5T512 960q-55-18-91.5-96.5T384 640m300-280q84 124 84 264q0 105-32.5 194.5T648 962q84-39 134-123t50-199q0-86-41-158T684 360"/></svg>How to use the Onion icon
React
import { Icon } from "@iconify/react";
<Icon icon="whh:onion" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="whh:onion" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="whh:onion" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[whh--onion]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/whh -->
<div class="i-whh:onion"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="whh:onion"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/whh/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. WebHostingHub Glyphs icons are released under the Open Font License, which allows use in personal and commercial projects.
How do I use the Onion icon in React?
Install @iconify/react and render <Icon icon="whh: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/whh/onion.svg" alt="Onion icon">, or paste the SVG code inline to style it with CSS.