ICONYZ
English
Traffic Light icon from Unicons

Traffic Light icon

uil:traffic-light

The Traffic Light icon (uil:traffic-light) is a free SVG icon from the Unicons set by Iconscout. It is drawn on a 24 × 24 grid. Unicons are released under the Apache 2.0 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
Unicons
Author
Iconscout
License
Apache-2.0
Size
24 × 24
Category
User Interface
Tags
trafficlight, yellow
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 5.5A1.5 1.5 0 1 0 13.5 7A1.5 1.5 0 0 0 12 5.5m10 3h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1h-4.18a3 3 0 0 0-2.82-2H9a3 3 0 0 0-2.82 2H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 5.16 5.93A3 3 0 0 0 9 22.5h6a3 3 0 0 0 2.84-2.07A6 6 0 0 0 23 14.5a1 1 0 0 0-1-1h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1M6 18.37a4 4 0 0 1-2.87-2.87H6Zm0-5a4 4 0 0 1-2.87-2.87H6Zm0-5a4.1 4.1 0 0 1-1.83-1a4.1 4.1 0 0 1-1-1.83H6ZM16 19.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Zm3.83-2.17a4.1 4.1 0 0 1-1.83 1V15.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V10.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V5.5h2.87a4.1 4.1 0 0 1-1.04 1.83M12 15.5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5m0-5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5"/></svg>

How to use the Traffic Light icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Unicons

Traffic Light icon in other icon sets

Traffic Light icon FAQ

Is the Traffic Light icon free for commercial use?

Yes. Unicons are released under the Apache 2.0 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="uil: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/uil/traffic-light.svg" alt="Traffic Light icon">, or paste the SVG code inline to style it with CSS.

Browse all Unicons →