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