Traffic Barrier icon
uil:traffic-barrier
The Traffic Barrier icon (uil:traffic-barrier) 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
- Construction
- Tags
- trafficbarrier
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 5h-1V4a1 1 0 0 0-2 0v1H6V4a1 1 0 0 0-2 0v1H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h1v7a1 1 0 0 0 2 0v-7h12v7a1 1 0 0 0 2 0v-7h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1M4 9.52V7h2.52ZM5.34 11l4-4h3.33l-4 4Zm6.15 0l4-4h3.18l-4 4ZM20 11h-2.51L20 8.49Z"/></svg>How to use the Traffic Barrier icon
React
import { Icon } from "@iconify/react";
<Icon icon="uil:traffic-barrier" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="uil:traffic-barrier" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="uil:traffic-barrier" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[uil--traffic-barrier]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/uil -->
<div class="i-uil:traffic-barrier"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="uil:traffic-barrier"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/uil/traffic-barrier.svg" alt="Traffic Barrier icon" width="24" height="24">Related icons in Unicons
Traffic Barrier icon in other icon sets
Traffic Barrier icon FAQ
Is the Traffic Barrier 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 Barrier icon in React?
Install @iconify/react and render <Icon icon="uil:traffic-barrier" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Traffic Barrier icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/uil/traffic-barrier.svg" alt="Traffic Barrier icon">, or paste the SVG code inline to style it with CSS.