ICONYZ
English
Tram icon from Font Awesome 5 Solid

Tram icon

fa-solid:tram

The Tram icon (fa-solid:tram) is a free SVG icon from the Font Awesome 5 Solid set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Font Awesome 5 Solid
Author
Dave Gandy
License
CC-BY-4.0
Size
512 × 512
Category
Travel, Objects, Maps, Vehicles, Winter
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M288 64c17.7 0 32-14.3 32-32S305.7 0 288 0s-32 14.3-32 32s14.3 32 32 32m223.5-12.1c-2.3-8.6-11-13.6-19.6-11.3l-480 128c-8.5 2.3-13.6 11-11.3 19.6C2.5 195.3 8.9 200 16 200c1.4 0 2.8-.2 4.1-.5L240 140.8V224H64c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H272v-91.7l228.1-60.8c8.6-2.3 13.6-11.1 11.4-19.6M176 384H80v-96h96zm160-96h96v96h-96zm-32 0v96h-96v-96zM192 96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32"/></svg>

How to use the Tram icon

React

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

<Icon icon="fa-solid:tram" width="24" />

Vue

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

<template>
  <Icon icon="fa-solid:tram" width="24" />
</template>

Svelte

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

<Icon icon="fa-solid:tram" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="fa-solid:tram"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa-solid/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. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Tram icon in React?

Install @iconify/react and render <Icon icon="fa-solid: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/fa-solid/tram.svg" alt="Tram icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 5 Solid icons →