ICONYZ
English
Train icon from IconPark Outline

Train icon

icon-park-outline:train

The Train icon (icon-park-outline:train) is a free SVG icon from the IconPark Outline set by ByteDance. It is drawn on a 48 × 48 grid. IconPark Outline 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 Outline
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"><g fill="none" stroke="currentColor"><path 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-linecap="round" stroke-linejoin="round" stroke-width="4" d="M34 38v4m-20-4v4"/><path fill="currentColor" 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-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 44h8"/><path stroke-linejoin="round" stroke-width="4" d="M9 12h30v14H9z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 12v14m-4-14h8m-8 14h8"/></g></svg>

How to use the Train icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/icon-park-outline -->
<div class="i-icon-park-outline: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-outline:train"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/icon-park-outline/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 Outline 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-outline: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-outline/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.

Browse all IconPark Outline icons →