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