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