html
<script>
import { createIcons, atSign } from 'lucide';
createIcons({
icons: {
atSign
}
});
</script>
<i data-lucide="at-sign"></i>
tsx
import { AtSign } from 'lucide-react';
const App = () => {
return (
<AtSign />
);
};
export default App;
vue
<script setup>
import { AtSign } from '@lucide/vue';
</script>
<template>
<AtSign />
</template>
svelte
<script>
import { AtSign } from 'lucide-svelte';
</script>
<AtSign />
tsx
import { AtSign } from 'lucide-preact';
const App = () => {
return (
<AtSign />
);
};
export default App;
tsx
import { AtSign } from 'lucide-solid';
const App = () => {
return (
<AtSign />
);
};
export default App;
tsx
// app.module.ts
import { LucideAngularModule, AtSign } from 'lucide-angular';
@NgModule({
imports: [
LucideAngularModule.pick({ AtSign })
],
})
// app.component.html
<lucide-icon name="at-sign"></lucide-icon>
html
<div class="icon-at-sign"></div>
看看这个图标的实际效果
错误
功能
At
112
8
11