Onion
The onion icon represents a type of vegetable.
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 128 128" {...props}>
<radialGradient id="SVG70ARXcKq" cx="61.836" cy="1.175" r="110.269" gradientUnits="userSpaceOnUse"><stop offset=".187" stopColor="#F2A05B"/><stop offset=".225" stopColor="#F5AD68"/><stop offset=".291" stopColor="#FECC88"/><stop offset=".639" stopColor="#FECC88"/><stop offset=".658" stopColor="#FECC88"/><stop offset=".703" stopColor="#FCC581"/><stop offset=".769" stopColor="#F7B16D"/><stop offset=".814" stopColor="#F3A05C"/><stop offset=".849" stopColor="#E6915B"/><stop offset=".905" stopColor="#D77F59"/><stop offset=".946" stopColor="#D17858"/></radialGradient><path fill="url(#SVG70ARXcKq)" d="M62.16 6.84s-7.09-5.02-7.65-2.58s.42 7.32-1.64 10.51s-4.88 4.69-7.13 5.44s-26.65 9.95-33.97 34.35s3.94 45.22 21.12 55.19c14.08 8.17 23.37 6.95 23.37 6.95s-1.88 1.69-2.63 1.88s-3.28.28-4.5.47s-5.54 1.69-5.16 2.82s4.13-.47 5.73-.75s4.32-.47 4.88-.75s3.28-2.16 3.28-2.16s-1.03 2.82-1.97 3.85s.84 2.44 2.91 1.88s3.57-5.44 3.57-5.44s.09 2.91.09 3.85s-.28 2.44.09 2.82c.38.38 3.19.84 4.04.38s.66-2.35.66-2.35s2.53 1.6 4.13 2.44s3.19 1.69 3.75.94s.09-2.25-.47-2.63s-2.53-1.31-2.91-1.88c-.38-.56-1.13-2.25-1.13-2.25s2.16-1.5 3.1-1.31s3.38 2.82 4.69 3.38s3.94 2.35 4.88 2.06c.94-.28 1.6-1.13 1.22-1.6s-3.47-1.97-4.22-2.72s-3.66-3.1-3.66-3.1s14.63-2.44 24.4-11.68c11.22-10.61 22.6-33.75 11.68-56.17c-10.42-21.4-30.69-28.02-37.59-30.41c-3.57-1.24-4.22-3.1-4.65-5.63c-.42-2.53-.7-9.71-2.67-10.14s-5.64 4.34-5.64 4.34"/><path fill="#D17759" d="M58.97 11.48c1.5.14.79-2.53 3.05-2.86c1.92-.28 2.06 2.49 3.28 2.02s.79-4.03.99-5.96c.19-1.88 1.5-2.21 1.5-2.21s-.93-1.03-2.9-.47s-2.72 3.1-2.72 3.1s-1.88-3.28-4.5-3c-2.43.26-3 1.88-3 1.88s1.88.09 2.44 1.5s-.15 5.81 1.86 6"/><radialGradient id="SVG4BRgrc4v" cx="61.131" cy="10.45" r="96.493" gradientUnits="userSpaceOnUse"><stop offset=".486" stopColor="#F2A05B"/><stop offset=".616" stopColor="#EE9B5B"/><stop offset=".768" stopColor="#E38D5A"/><stop offset=".922" stopColor="#D17759"/></radialGradient><path fill="url(#SVG4BRgrc4v)" d="M65.92 32.79c.56 3.52 5.31 21.17 5.54 33.41c.28 15.3-1.5 25.64-2.96 32.57c-1.64 7.79-3.38 13.94-3.38 13.94l4.36-5.49s3.66-12.76 4.79-24.78c.99-10.57.14-23.51-2.53-36.04c-2.68-12.53-4.74-21.5-5.21-25.77c-.34-3.09-.84-7.93-.84-7.93s2.96 6.28 5.02 9.29c1.85 2.7 6.38 8.63 10.89 17.64c5.04 10.07 8.54 23.84 7.98 35.1s-2.63 19.66-4.88 24.03c-2.25 4.36-8.45 10.56-8.45 10.56l-2.96 2.53s7.74-2.39 10.7-6.9s8.96-13.61 8.68-31.91s-5.26-28.63-8.82-35.95c-2.84-5.83-11.9-17.88-11.9-17.88S86.19 29.46 89.66 32.6c8.73 7.88 15.39 17.36 16.42 34.77c.77 12.99-2.82 21.54-6.76 27.17s-11.45 13.8-11.45 13.8l11.64-9.48s10.79-10.93 9.81-31.63s-10.84-30.31-16.89-35.9c-5.17-4.77-14.75-10.8-18.63-13.09c-3.31-1.95-4.04-3.8-4.46-5.35s-1.27-1.5-1.27-1.5L56.9 12.42l-1.08-.48s-5.3 8.28-10.75 12.17C41 27.02 31 33.73 24.34 43.77c-6.75 10.18-7.56 20.93-6.66 31.72c.94 11.26 6.19 23.7 16.19 29.89s22.38 7.88 22.38 7.88s-7.73-2.84-11.64-4.46c-4.32-1.78-9.76-4.22-14.97-10.32c-4.42-5.17-11.66-18.16-9.43-35.19c1.6-12.2 7.03-20.81 14.08-27.31c7.37-6.8 11.16-9.26 13-10.79c4.22-3.52 7.98-9.13 7.98-9.13s1.72-1.62.28 1.48c-1.23 2.65-5.58 8.67-6.41 9.85c-3.03 4.36-7.34 8.12-12.79 22.48c-5.63 14.85-3.99 28.02-2.16 34.91c1.83 6.9 4.22 12.67 7.7 17.08c4.19 5.32 13.8 10.79 13.8 10.79s-8-6.91-11.26-11.54c-4.04-5.73-6.13-11.96-7.88-19.43c-1.5-6.38-2.07-16.97 2.25-30.13c3.38-10.28 5.98-13.68 9.36-18.61s5.65-7.95 8.47-12.55c1.65-2.7 3.21-7.09 3.21-7.09l.63-.19s-.7 5.77-1.41 8.73s-1.45 7.6-3.28 12.53s-8.24 18.39-7.7 33.83c.66 18.63 5.3 30.03 7.13 34.4s4.69 12.06 4.69 12.06l1.6-5.58s-7.13-14.69-9.1-26.94c-1.78-11.07-1.92-18.54-.56-26.94c.86-5.29 6.1-17.97 7.09-21.63s2.25-9.48 2.53-11.17l1.48-6.22z"/><path fill="#FEEAC4" d="M35.79 38.89c-2.35-.56-4.5 1.78-6.85 5.91c-2.2 3.87-3.3 8.19-.28 9.01c3.1.84 6.1-5.26 6.95-7.79c.84-2.53 1.95-6.71.18-7.13m6.66 7.32c-2.35 6.23-2.72 11.07-.56 11.83c2.16.75 5.82-6.38 6.85-9.67c1.03-3.28 2.72-9.67.38-10.42c-2.35-.75-5.07 4.03-6.67 8.26m13.71 6.29c-.82 4.09-.47 6.19 1.41 6.57s2.63-4.04 2.91-6.01s1.22-6.1-.94-6.57s-2.73 2.72-3.38 6.01"/>
</svg>
);Other libraries
Onion in 5 more libraries
Each library draws it its own way. Open one to compare.
Noto Emoji
More like it
Icons that share its tags, in the same style.
Search Noto Emoji
Skip the copy and paste. With Pro, your AI agent finds and installs any Noto Emoji icon from a prompt.
Get ProTags
Browse by tag
Onion is tagged emoji, google, food and 3 more. Related tags follow; each opens its icons from every library.
Pricing
Noto Emoji MCP, with Pro
Ask for Onion or any of 3,800 Noto Emoji 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 a type of vegetable. It is an emoji used to indicate a food item. The icon features a stylized illustration of an onion.
In food and cooking, the onion icon can be used in recipe websites, cooking blogs, and food delivery apps to represent a common ingredient. It can also be used in social media to discuss food and cooking.
From a UX perspective, the onion icon effectively communicates a specific type of food, helping users quickly identify and navigate to relevant content.
Onion is one of 3,800 icons in Noto Emoji, made by Google Inc and released under Apache 2.0. It is drawn on a 128 × 128 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/noto-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 3,800 Noto Emoji 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 128 × 128 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. Apache 2.0 allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: Apache 2.0 only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Noto Emoji, Google Inc and the 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 emoji, google, food, multicolor, cooking 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.
Noto Emoji 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