ICONYZ
English
Train icon from Guidance

Train icon

guidance:train

The Train icon (guidance:train) is a free SVG icon from the Guidance set by Streamline. It is drawn on a 24 × 24 grid. Guidance 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
Guidance
Author
Streamline
License
CC-BY-4.0
Size
24 × 24
Category
Transportation
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" d="M6 15.5h3m6 0h3M3.5 11.715c1.513.294 4.623.785 8.5.785c3.878 0 6.987-.491 8.5-.785M8.5 18.5l-.586 1.172A7.6 7.6 0 0 1 6.636 21.5m8.864-3l.586 1.171c.337.675.77 1.29 1.279 1.829m3.635 2a2.6 2.6 0 0 1-.969-.174a7.6 7.6 0 0 1-2.666-1.826M3 23.5c.331 0 .662-.049.969-.174A7.6 7.6 0 0 0 6.636 21.5M3.5 3.5h17m-13.864 18h10.729M3.5 18.5V.5h17v18z"/></svg>

How to use the Train icon

React

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

<Icon icon="guidance:train" width="24" />

Vue

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

<template>
  <Icon icon="guidance:train" width="24" />
</template>

Svelte

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

<Icon icon="guidance:train" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="guidance:train"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/guidance/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. Guidance 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 Train icon in React?

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

Browse all Guidance icons →