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