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