Skip to content

onion

lab

flavor • flavour • vegetable • ingredient • cooking • cookery • kitchen • cuisine • eating • nutrition • diet

Contributors:

danielbayley
js
import { createIcons, icons } from 'lucide';
import { onion } from '@lucide/lab';

createIcons({
  icons: {
    onion
  }
});

document.body.append('<i data-lucide="onion"></i>');  
tsx
import { Icon } from 'lucide-react';
import { onion } from '@lucide/lab';

const App = () => {
  return (
    <Icon iconNode={onion} />
  );
};

export default App;
vue
<script setup>
import { Icon } from 'lucide-vue-next';
import { onion } from '@lucide/lab';
</script>

<template>
  <Icon :iconNode="onion" />
</template>
svelte
<script>
import { Icon } from 'lucide-svelte';
import { onion } from '@lucide/lab';
</script>

<Icon iconNode={onion} />
tsx
import { Icon } from 'lucide-preact';
import { onion } from '@lucide/lab';

const App = () => {
  return (
    <Icon iconNode={onion} />
  );
};

export default App;
tsx
import { Icon } from 'lucide-solid';
import { onion } from '@lucide/lab';

const App = () => {
  return (
    <Icon iconNode={onion} />
  );
};

export default App;
tsx
// app.module.ts
import { LucideAngularModule } from 'lucide-angular';
import { onion } from '@lucide/lab';

@NgModule({
  imports: [
    LucideAngularModule.pick({ onion })
  ],
})

// app.component.html
<lucide-icon name="onion"></lucide-icon>

See this icon in action

Bug
Feature
Onion
112
8
11