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