Onion
The onion icon represents an onion, often used to signify food or cooking.
Exports at 24 × 24 px
Code
Onion in your framework
In any framework. Customize it above, and the code follows.
export const OnionIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 72 72" fill="none" stroke="currentColor" {...props}>
<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" strokeLinecap="round" strokeLinejoin="round" strokeWidth="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>
);Other libraries
Onion in 5 more libraries
Each library draws it its own way. Open one to compare.
OpenMoji
More like it
Icons that share its tags, in the same style.
Search OpenMoji
Skip the copy and paste. With Pro, your AI agent finds and installs any OpenMoji icon from a prompt.
Get ProTags
Browse by tag
Onion is tagged food, cooking, cuisine and 2 more. Related tags follow; each opens its icons from every library.
Pricing
OpenMoji MCP, with Pro
Ask for Onion or any of 4,481 OpenMoji icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Onion icon means and where it's used, then how to install, style, label and license it.
The onion icon represents an onion, often used to signify food or cooking. It originated from the need to visually communicate ingredients in various contexts, such as recipes, menus, or cooking instructions. The icon is widely recognized and associated with flavor and cuisine.
In real-world applications, the onion icon is used in various software and platforms, such as recipe websites, cooking apps, or food delivery platforms. For example, it may appear on recipe pages, cooking tutorials, or food menus.
From a UX perspective, the onion icon communicates a sense of food, cooking, and nutrition. It helps users quickly identify and navigate to food-related resources or recipes. The icon's clear and recognizable design enables users to understand its meaning without requiring extensive context.
Onion is one of 4,481 icons in OpenMoji, made by OpenMoji and released under CC BY-SA 4.0. It is drawn on a 72 × 72 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds OnionIcon to components/icons/openmoji-onion.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed OnionIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Onion icon, or any of 4,481 OpenMoji icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 72 × 72 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Onion", so screen readers say what it does.
Yes. OnionIcon passes every SVG prop to the svg element, so <OnionIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with conditions: CC BY-SA 4.0 asks you to credit the author (OpenMoji), and icons you change must use the same license. The full terms are in the license, linked on this page.
Yes. CC BY-SA 4.0 asks you to credit OpenMoji, and icons you change must be shared under the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
5 other libraries draw an icon called Onion. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are food, cooking, cuisine, recipe and vegetable. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Onion in another set.
OpenMoji draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see Onion's siblings in it.
4.9 out of 5 from 150+ developers
Install Onion from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro