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