ICONYZ
English
Traffic Light icon from Huge Icons

Traffic Light icon

hugeicons:traffic-light

The Traffic Light icon (hugeicons:traffic-light) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
Huge Icons
Author
Hugeicons
License
MIT
Size
24 × 24
Tags
trafficlight
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M13.5 6.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Zm0 6a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z"/><path d="M12 17c-1.87 0-2.804 0-3.5-.402A3 3 0 0 1 7.402 15.5C7 14.804 7 13.87 7 12V7c0-1.87 0-2.804.402-3.5A3 3 0 0 1 8.5 2.402C9.196 2 10.13 2 12 2s2.804 0 3.5.402A3 3 0 0 1 16.598 3.5C17 4.196 17 5.13 17 7v5c0 1.87 0 2.804-.402 3.5a3 3 0 0 1-1.098 1.098C14.804 17 13.87 17 12 17Z"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 17v5M7 8l-1.044-.877C4.641 6.02 3.984 5.468 4 4.966c.007-.204.073-.4.189-.564C4.475 4 5.316 4 7 4m10 4l1.044-.877C19.358 6.02 20.016 5.468 20 4.966a1.03 1.03 0 0 0-.189-.564C19.525 4 18.684 4 17 4m0 11l1.044-.876c1.314-1.104 1.972-1.657 1.956-2.158a1.03 1.03 0 0 0-.189-.564C19.525 11 18.684 11 17 11M7 15l-1.044-.876C4.641 13.02 3.984 12.467 4 11.966c.007-.204.073-.4.189-.564C4.475 11 5.316 11 7 11"/></g></svg>

How to use the Traffic Light icon

React

import { Icon } from "@iconify/react";

<Icon icon="hugeicons:traffic-light" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="hugeicons:traffic-light" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="hugeicons:traffic-light" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--traffic-light]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:traffic-light"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="hugeicons:traffic-light"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/hugeicons/traffic-light.svg" alt="Traffic Light icon" width="24" height="24">

Related icons in Huge Icons

Traffic Light icon in other icon sets

Traffic Light icon FAQ

Is the Traffic Light icon free for commercial use?

Yes. Huge Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Traffic Light icon in React?

Install @iconify/react and render <Icon icon="hugeicons:traffic-light" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Traffic Light icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/hugeicons/traffic-light.svg" alt="Traffic Light icon">, or paste the SVG code inline to style it with CSS.

Browse all Huge Icons →