Lightbulb Compact icon
codicon:lightbulb-compact
The Lightbulb Compact icon (codicon:lightbulb-compact) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 12 × 12 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Codicons
- Author
- Microsoft Corporation
- License
- CC-BY-4.0
- Size
- 12 × 12
- Tags
- lightbulbcompact
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="currentColor" d="M2.5 4.5C2.5 2.57 4.07 1 6 1s3.5 1.57 3.5 3.5c0 .98-.4 1.86-1.05 2.5c-.19.19-.36.44-.44.74l-.35 1.27H4.33l-.35-1.27c-.08-.3-.25-.55-.44-.74a3.5 3.5 0 0 1-1.05-2.5zM4.61 10h2.78l-.17.63c-.06.22-.26.37-.48.37H5.27c-.23 0-.42-.15-.48-.37L4.62 10zM6 0C3.51 0 1.5 2.01 1.5 4.5c0 1.26.52 2.39 1.34 3.21c.1.1.16.19.18.29l.79 2.9c.18.65.77 1.11 1.45 1.11h1.47c.68 0 1.27-.45 1.45-1.11L8.97 8a.7.7 0 0 1 .18-.29c.83-.82 1.34-1.95 1.34-3.21c0-2.49-2.01-4.5-4.5-4.5z"/></svg>How to use the Lightbulb Compact icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:lightbulb-compact" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:lightbulb-compact" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:lightbulb-compact" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--lightbulb-compact]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:lightbulb-compact"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:lightbulb-compact"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/lightbulb-compact.svg" alt="Lightbulb Compact icon" width="24" height="24">Related icons in Codicons
Lightbulb Compact icon FAQ
Is the Lightbulb Compact icon free for commercial use?
Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Lightbulb Compact icon in React?
Install @iconify/react and render <Icon icon="codicon:lightbulb-compact" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lightbulb Compact icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/lightbulb-compact.svg" alt="Lightbulb Compact icon">, or paste the SVG code inline to style it with CSS.