Traffic Light icon
andrsrxn:traffic-light
The Traffic Light icon (andrsrxn:traffic-light) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Transport
- Tags
- trafficlight
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M16.74 6.53c0-1.88 0-2.82-.58-3.41c-.59-.59-1.53-.59-3.42-.59h-1.48c-1.89 0-2.83 0-3.42.59s-.58 1.53-.58 3.41v6.65c0 1.89 0 2.83.58 3.42c.59.58 1.53.58 3.42.58h1.48c1.89 0 2.83 0 3.42-.58c.58-.59.58-1.53.58-3.42zm-3.27.2a1.47 1.47 0 1 1-2.94 0a1.47 1.47 0 0 1 2.94 0m0 6.28a1.47 1.47 0 1 1-2.94 0a1.47 1.47 0 0 1 2.94 0" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.3 6.27c-.23-2.08-.36-3.12.24-3.8c.6-.66 1.64-.66 3.74-.66h1.5c2.07 0 3.1 0 3.7.66s.49 1.69.28 3.75l-.34 3.23l-.03.4l.03.42l.34 3.23c.21 2.06.32 3.1-.28 3.75c-.6.66-1.63.66-3.7.66h-1.5c-2.1 0-3.14 0-3.74-.67s-.47-1.7-.23-3.8l.36-3.12c.03-.23.04-.34.04-.46s-.01-.23-.04-.46zM12 22.55V17.9"/><circle cx="12" cy="6.74" r="1.63" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/><circle cx="12" cy="13.01" r="1.63" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.1 5.01c-1.68 0-2.51 0-2.81.42a1 1 0 0 0-.18.44c-.07.51.53 1.09 1.74 2.24l1.38 1.32m9.79-4.42c1.57 0 2.36 0 2.66.38a1 1 0 0 1 .21.54c.05.47-.52 1.02-1.66 2.1l-1.46 1.4m-9.92 2.53c-1.43 0-2.15 0-2.45.32a1 1 0 0 0-.27.68c0 .43.52.93 1.57 1.9l1.15 1.1m10.3-4c1.43 0 2.15 0 2.45.32a1 1 0 0 1 .27.68c0 .43-.52.93-1.57 1.9l-1.15 1.1"/></g></svg>How to use the Traffic Light icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:traffic-light" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:traffic-light" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:traffic-light" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--traffic-light]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:traffic-light"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:traffic-light"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/traffic-light.svg" alt="Traffic Light icon" width="24" height="24">Related icons in andrsrxn/icons
Traffic Light icon in other icon sets
Traffic Light icon FAQ
Is the Traffic Light icon free for commercial use?
Yes. andrsrxn/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="andrsrxn: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/andrsrxn/traffic-light.svg" alt="Traffic Light icon">, or paste the SVG code inline to style it with CSS.