Traffic Light 20 Bold icon
energy-icons:traffic-light-20-bold
The Traffic Light 20 Bold icon (energy-icons:traffic-light-20-bold) is a free SVG icon from the Energy Icons set by Sam Passmore. It is drawn on a 20 × 20 grid. Energy Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Energy Icons
- Author
- Sam Passmore
- License
- MIT
- Size
- 20 × 20
- Tags
- trafficlight, lightbold, trafficlightbold
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M12.708 3.333c0-.575-.467-1.042-1.042-1.042H8.333c-.575 0-1.042.467-1.042 1.042v13.333c0 .575.467 1.042 1.042 1.042h3.333c.575 0 1.042-.467 1.042-1.042zm1.25 13.333a2.29 2.29 0 0 1-2.292 2.292H8.333a2.29 2.29 0 0 1-2.292-2.292V3.333a2.29 2.29 0 0 1 2.292-2.292h3.333a2.29 2.29 0 0 1 2.292 2.292z"/><path fill="currentColor" d="M10.833 5.416a.834.834 0 1 0-1.668.002a.834.834 0 0 0 1.668-.002m1.25 0a2.084 2.084 0 1 1-4.169 0a2.084 2.084 0 0 1 4.169 0m-1.25 4.583a.834.834 0 1 0-1.668.002a.834.834 0 0 0 1.668-.002m1.25 0a2.084 2.084 0 1 1-4.169 0a2.084 2.084 0 0 1 4.169 0m-1.25 4.584a.834.834 0 1 0-1.668.001a.834.834 0 0 0 1.668-.002m1.25 0a2.084 2.084 0 1 1-4.169-.001a2.084 2.084 0 0 1 4.169 0"/></svg>How to use the Traffic Light 20 Bold icon
React
import { Icon } from "@iconify/react";
<Icon icon="energy-icons:traffic-light-20-bold" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="energy-icons:traffic-light-20-bold" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="energy-icons:traffic-light-20-bold" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[energy-icons--traffic-light-20-bold]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/energy-icons -->
<div class="i-energy-icons:traffic-light-20-bold"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="energy-icons:traffic-light-20-bold"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/energy-icons/traffic-light-20-bold.svg" alt="Traffic Light 20 Bold icon" width="24" height="24">Related icons in Energy Icons
Traffic Light 20 Bold icon FAQ
Is the Traffic Light 20 Bold icon free for commercial use?
Yes. Energy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Traffic Light 20 Bold icon in React?
Install @iconify/react and render <Icon icon="energy-icons:traffic-light-20-bold" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Traffic Light 20 Bold icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/energy-icons/traffic-light-20-bold.svg" alt="Traffic Light 20 Bold icon">, or paste the SVG code inline to style it with CSS.