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