ICONYZ
English
Train icon from Röntgen

Train icon

roentgen:train

The Train icon (roentgen:train) is a free SVG icon from the Röntgen set by Sergey Vartanov. It is drawn on a 24 × 24 grid. Röntgen 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
Röntgen
Author
Sergey Vartanov
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M4 2a1 1 0 0 0-1 1v8a1 1 0 0 0 .998 1H12a1 1 0 0 0 1-1V3a1 1 0 0 0-.998-1zm.499 2H11.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.499.5H4.5a.5.5 0 0 1-.5-.5V4.501A.5.5 0 0 1 4.499 4m0 5H5.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.499.5H4.5a.5.5 0 0 1-.5-.5v-.999A.5.5 0 0 1 4.499 9m6 0H11.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.499.5H10.5a.5.5 0 0 1-.5-.5v-.999A.5.5 0 0 1 10.499 9m1.001 4a.5.5 0 0 0-.5.5v.5H5v-.499a.5.5 0 1 0-1-.001v.5H2.5a.5.5 0 0 0-.001 1H13.5a.5.5 0 0 0 .001-1H12v-.499a.5.5 0 0 0-.5-.501"/></svg>

How to use the Train icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Browse all Röntgen icons →