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