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