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