ICONYZ
English
Train icon from IconPark Solid

Train icon

icon-park-solid:train

The Train icon (icon-park-solid:train) is a free SVG icon from the IconPark Solid set by ByteDance. It is drawn on a 48 × 48 grid. IconPark Solid icons are released under the Apache 2.0 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
IconPark Solid
Author
ByteDance
License
Apache-2.0
Size
48 × 48
Category
Travel
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><mask id="SVGMCbDOeYT"><g fill="none"><path stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 8.84c0-.933.438-1.807 1.271-2.225C12.247 5.625 16.613 4 24 4s11.754 1.625 13.728 2.615C38.563 7.033 39 7.907 39 8.839V36a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M34 38v4m-20-4v4"/><path fill="#fff" stroke="#fff" d="M20.5 32a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Zm10 0a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 44h8"/><path fill="#fff" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 12h30v14H9z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 12v14"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 12h8m-8 14h8"/></g></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGMCbDOeYT)"/></svg>

How to use the Train icon

React

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

<Icon icon="icon-park-solid:train" width="24" />

Vue

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

<template>
  <Icon icon="icon-park-solid:train" width="24" />
</template>

Svelte

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

<Icon icon="icon-park-solid:train" width="24" />

Tailwind CSS

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

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/icon-park-solid -->
<div class="i-icon-park-solid:train"></div>

Web component

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

<iconify-icon icon="icon-park-solid:train"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/icon-park-solid/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. IconPark Solid icons are released under the Apache 2.0 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="icon-park-solid: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/icon-park-solid/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.

Browse all IconPark Solid icons →