js
import { createIcons, icons } from 'lucide';
createIcons({ icons });
document.body.append('<i data-lucide="trash-2"></i>');
tsx
import { Trash2 } from 'lucide-react';
const App = () => {
return (
<Trash2 />
);
};
export default App;
vue
<script setup>
import { Trash2 } from 'lucide-vue-next';
</script>
<template>
<Trash2 />
</template>
svelte
<script>
import { Trash2 } from 'lucide-svelte';
</script>
<Trash2 />
tsx
import { Trash2 } from 'lucide-preact';
const App = () => {
return (
<Trash2 />
);
};
export default App;
tsx
import { Trash2 } from 'lucide-solid';
const App = () => {
return (
<Trash2 />
);
};
export default App;
tsx
// app.module.ts
import { LucideAngularModule, Trash2 } from 'lucide-angular';
@NgModule({
imports: [
LucideAngularModule.pick({ Trash2 })
],
})
// app.component.html
<lucide-icon name="trash-2"></lucide-icon>
html
<style>
@import ('~lucide-static/font/Lucide.css');
</style>
<div class="icon-trash-2"></div>
See this icon in action
Bug
Feature
Trash
112
8
11