Tram icon
openmoji:tram
The Tram icon (openmoji:tram) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- OpenMoji
- Author
- OpenMoji
- License
- CC-BY-SA-4.0
- Size
- 72 × 72
- Category
- Travel Places
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><path fill="#3f3f3f" d="M21 50L11 61h50L51 50z"/><rect width="28.8" height="33" x="21.6" y="15" fill="#d0cfce" rx="3.056" ry="3.056"/><path fill="#61b2e4" d="M25 19h22v14H25z"/><path fill="#92d3f5" d="M47 19H25v14"/><path fill="#fcea2b" d="M25 37h5v5h-5zm17 0h5v5h-5z"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-width="2"><rect width="28.8" height="33" x="21.6" y="15" stroke-linejoin="round" rx="3.056" ry="3.056"/><path stroke-miterlimit="10" d="m24 51l-8 9m32-9l8 9"/><path stroke-linejoin="round" d="M35.166 15L27 8h17zM47 20v13H26m0 9h4v-4m13 4h4v-4"/></g></svg>How to use the Tram icon
React
import { Icon } from "@iconify/react";
<Icon icon="openmoji:tram" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="openmoji:tram" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="openmoji:tram" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[openmoji--tram]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/openmoji -->
<div class="i-openmoji:tram"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="openmoji:tram"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/openmoji/tram.svg" alt="Tram icon" width="24" height="24">Related icons in OpenMoji
Tram icon in other icon sets
Tram icon FAQ
Is the Tram icon free for commercial use?
Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.
How do I use the Tram icon in React?
Install @iconify/react and render <Icon icon="openmoji: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/openmoji/tram.svg" alt="Tram icon">, or paste the SVG code inline to style it with CSS.