ICONYZ
English
Tram icon from Iconoir

Tram icon

iconoir:tram

The Tram icon (iconoir:tram) is a free SVG icon from the Iconoir set by Luca Burgio. It is drawn on a 24 × 24 grid. Iconoir 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
Iconoir
Author
Luca Burgio
License
MIT
Size
24 × 24
Category
Transport
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-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="m15 16.01l.01-.011M9 16.01l.01-.011M13 6h2a5 5 0 0 1 5 5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a5 5 0 0 1 5-5zm0 0l1-4m0 0h3m-3 0H7"/><path d="m10.5 20l-2 2.5m5-2.5l2 2.5m1-2.5l2 2.5M7.5 20l-2 2.5"/><path stroke-linejoin="round" d="M9.609 9h4.782A2.61 2.61 0 0 1 17 11.609a.39.39 0 0 1-.391.391H7.39a.39.39 0 0 1-.39-.391A2.61 2.61 0 0 1 9.609 9"/></g></svg>

How to use the Tram icon

React

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

<Icon icon="iconoir:tram" width="24" />

Vue

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

<template>
  <Icon icon="iconoir:tram" width="24" />
</template>

Svelte

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

<Icon icon="iconoir:tram" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[iconoir--tram]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/iconoir -->
<div class="i-iconoir:tram"></div>

Web component

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

<iconify-icon icon="iconoir:tram"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/iconoir/tram.svg" alt="Tram icon" width="24" height="24">

Tram icon in other icon sets

Tram icon FAQ

Is the Tram icon free for commercial use?

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

How do I use the Tram icon in React?

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

How do I add the Tram icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/iconoir/tram.svg" alt="Tram icon">, or paste the SVG code inline to style it with CSS.

Browse all Iconoir icons →