js
import { createIcons, icons } from 'lucide';
import { planet } from '@lucide/lab';
createIcons({
icons: {
planet
}
});
document.body.append('<i data-lucide="planet"></i>');
tsx
import { Icon } from 'lucide-react';
import { planet } from '@lucide/lab';
const App = () => {
return (
<Icon iconNode={planet} />
);
};
export default App;
vue
<script setup>
import { Icon } from 'lucide-vue-next';
import { planet } from '@lucide/lab';
</script>
<template>
<Icon :iconNode="burger" />
</template>
svelte
<script>
import { Icon } from 'lucide-svelte';
import { planet } from '@lucide/lab';
</script>
<Icon iconNode={burger} />
tsx
import { Icon } from 'lucide-preact';
import { planet } from '@lucide/lab';
const App = () => {
return (
<Icon iconNode={planet} />
);
};
export default App;
tsx
import { Icon } from 'lucide-solid';
import { planet } from '@lucide/lab';
const App = () => {
return (
<Icon iconNode={planet} />
);
};
export default App;
tsx
// app.module.ts
import { LucideAngularModule } from 'lucide-angular';
import { planet } from '@lucide/lab';
@NgModule({
imports: [
LucideAngularModule.pick({ planet })
],
})
// app.component.html
<lucide-icon name="planet"></lucide-icon>