Onion icon
dinkie-icons:onion
The Onion icon (dinkie-icons:onion) is a free SVG icon from the Dinkie Icons set by atelierAnchor. It is drawn on a 12 × 12 grid. Dinkie 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
- Dinkie Icons
- Author
- atelierAnchor
- License
- MIT
- Size
- 12 × 12
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="currentColor" d="M4 12h1v-1h1v1h1v-1h2v-1H8V9H7v1H6V9H5v1H4V9H3v1H2v1h2Zm-3-2h1V9H1ZM0 9h1V5H0Zm2 0h1V6H2Zm2 0h1V7H4ZM1 5h1V4H1Zm2 1h1V5H3Zm3 3h1V7H6ZM2 4h1V3H2Zm3 3h1V6H5Zm4 3h1V9H9ZM4 5h1V4H4ZM3 3h1V2H3Zm5 6h1V6H8ZM6 5h1V4H6Zm1 1h1V5H7ZM5 4h1V3H5ZM4 2h1V1H4Zm6 7h1V5h-1ZM6 2h1V1H6Zm2 2h1V3H8Zm1 1h1V4H9ZM7 3h1V2H7Zm0 0"/></svg>How to use the Onion icon
React
import { Icon } from "@iconify/react";
<Icon icon="dinkie-icons:onion" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="dinkie-icons:onion" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="dinkie-icons:onion" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[dinkie-icons--onion]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/dinkie-icons -->
<div class="i-dinkie-icons:onion"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="dinkie-icons:onion"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/dinkie-icons/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. Dinkie Icons are released under the MIT 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="dinkie-icons: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/dinkie-icons/onion.svg" alt="Onion icon">, or paste the SVG code inline to style it with CSS.