ICONYZ
English
Tram icon from Huge Icons

Tram icon

hugeicons:tram

The Tram icon (hugeicons:tram) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
Huge Icons
Author
Hugeicons
License
MIT
Size
24 × 24
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-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M5 2h9m5 0h-5m0 0l-2 3M8 20l-1 2m9-2l1 2"/><path stroke-linejoin="round" d="M5 13v-1c0-3.3 0-4.95 1.025-5.975S8.7 5 12 5s4.95 0 5.975 1.025S19 8.7 19 12v1c0 3.3 0 4.95-1.025 5.975S15.3 20 12 20s-4.95 0-5.975-1.025S5 16.3 5 13Z"/><path stroke-linejoin="round" d="M5 14s3.267 1 7 1s7-1 7-1"/><path stroke-linecap="round" d="M16.5 17h2m-13-9h13m-13 9h2"/></g></svg>

How to use the Tram icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Huge Icons

Tram icon in other icon sets

Tram icon FAQ

Is the Tram icon free for commercial use?

Yes. Huge 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="hugeicons: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/hugeicons/tram.svg" alt="Tram icon">, or paste the SVG code inline to style it with CSS.

Browse all Huge Icons →