ICONYZ
English
Traffic Light icon from Unicons Thin Line

Traffic Light icon

uit:traffic-light

The Traffic Light icon (uit:traffic-light) is a free SVG icon from the Unicons Thin Line set by Iconscout. It is drawn on a 24 × 24 grid. Unicons Thin Line icons 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 Thin Line
Author
Iconscout
License
Apache-2.0
Size
24 × 24
Category
User Interface
Tags
trafficlight
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 5a2 2 0 1 0 0 4a2 2 0 0 0 0-4m0 3a1 1 0 1 1 0-2a1 1 0 0 1 0 2m0 7a2 2 0 1 0 0 4a2 2 0 0 0 0-4m0 3a1 1 0 1 1 0-2a1 1 0 0 1 0 2M23 4.5a.5.5 0 0 0-.5-.5h-4.591a2.65 2.65 0 0 0-2.561-2H8.652a2.65 2.65 0 0 0-2.561 2H1.5a.5.5 0 0 0-.5.5c0 1.862.929 3.505 2.345 4.5H1.5a.5.5 0 0 0-.5.5c0 1.862.929 3.505 2.345 4.5H1.5a.5.5 0 0 0-.5.5a5.5 5.5 0 0 0 5.084 5.479A2.65 2.65 0 0 0 8.652 22h6.696a2.65 2.65 0 0 0 2.568-2.021A5.5 5.5 0 0 0 23 14.5a.5.5 0 0 0-.5-.5h-1.845A5.49 5.49 0 0 0 23 9.5a.5.5 0 0 0-.5-.5h-1.845A5.49 5.49 0 0 0 23 4.5M6 18.972A4.5 4.5 0 0 1 2.028 15H6zm0-5A4.5 4.5 0 0 1 2.028 10H6zm0-5A4.5 4.5 0 0 1 2.028 5H6zM17 9.5v9.848A1.654 1.654 0 0 1 15.348 21H8.652A1.654 1.654 0 0 1 7 19.348V4.652A1.654 1.654 0 0 1 8.652 3h6.696c.912.001 1.651.74 1.652 1.652zm4.972 5.5A4.5 4.5 0 0 1 18 18.972V15zm0-5A4.5 4.5 0 0 1 18 13.972V10zM18 8.972V5h3.972A4.5 4.5 0 0 1 18 8.972M12 10a2 2 0 1 0 0 4a2 2 0 0 0 0-4m0 3a1 1 0 1 1 0-2a1 1 0 0 1 0 2"/></svg>

How to use the Traffic Light icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Traffic Light icon in other icon sets

Traffic Light icon FAQ

Is the Traffic Light icon free for commercial use?

Yes. Unicons Thin Line icons 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="uit: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/uit/traffic-light.svg" alt="Traffic Light icon">, or paste the SVG code inline to style it with CSS.

Browse all Unicons Thin Line icons →