Train icon
whh:train
The Train icon (whh:train) is a free SVG icon from the WebHostingHub Glyphs set by WebHostingHub. It is drawn on a 579 × 1024 grid. WebHostingHub Glyphs icons are released under the Open Font 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
- WebHostingHub Glyphs
- Author
- WebHostingHub
- License
- OFL-1.1
- Size
- 579 × 1024
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="579" height="1024" viewBox="0 0 579 1024"><path fill="currentColor" d="M537 1024H42q-28 0-37.5-23T9 947l91-190q9-21 31-37q72 48 158.5 48T448 720q22 16 31 37l91 190q14 31 4.5 54t-37.5 23M177.5 836q-11.5-7-24.5-3.5T134 849l-32 60q-7 12-3.5 26t15 21t24.5 3.5t19-16.5l32-60q7-12 3.5-26t-15-21M322 864q0-13-9.5-22.5t-23-9.5t-22.5 9.5t-9 22.5v64q0 13 9 22.5t22.5 9.5t23-9.5T322 928zm155 45l-32-60q-6-13-19-16.5t-24.5 3.5t-15 21t3.5 26l32 60q6 13 19 16.5t24.5-3.5t15-21t-3.5-26M289.5 704q-92.5 0-158-65.5T66 480q0-84 55-147t137-74V128q-27 0-46-18.5T193 64t19-45.5T258 0h64q26 0 45 18.5T386 64t-19 45.5t-45 18.5v131q81 11 136.5 74T514 480q0 93-66 158.5T289.5 704m0-256q-13.5 0-22.5 9.5t-9 22.5t9 22.5t22.5 9.5t23-9.5T322 480t-9.5-22.5t-23-9.5"/></svg>How to use the Train icon
React
import { Icon } from "@iconify/react";
<Icon icon="whh:train" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="whh:train" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="whh:train" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[whh--train]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/whh -->
<div class="i-whh:train"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="whh:train"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/whh/train.svg" alt="Train icon" width="24" height="24">Train icon in other icon sets
Train icon FAQ
Is the Train icon free for commercial use?
Yes. WebHostingHub Glyphs icons are released under the Open Font License, which allows use in personal and commercial projects.
How do I use the Train icon in React?
Install @iconify/react and render <Icon icon="whh:train" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Train icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/whh/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.