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