Train icon
raphael:train
The Train icon (raphael:train) is a free SVG icon from the Raphael set by Dmitry Baranovskiy. It is drawn on a 32 × 32 grid. Raphael icons are released under the MIT 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
- Raphael
- Author
- Dmitry Baranovskiy
- License
- MIT
- Size
- 32 × 32
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M25.78 21.382c.69-.69.608-4.31.608-4.31c0-2.21-.663-10.335-1.602-12.104s-6.19-3.26-8.787-3.26S8.15 3.2 7.212 4.968C6.273 6.738 5.61 14.86 5.61 17.07c0 0-.083 3.62.607 4.312c.455.455 2.205 1.58 3.663 2.423L6.136 30.29h2.31l.673-1.165h13.758l.673 1.166h2.312l-3.744-6.485c1.458-.842 3.208-1.968 3.663-2.423zm-1.96-4.587a.857.857 0 1 1 .854-.857a.855.855 0 0 1-.856.855zm-3.4-9.836h3.77c.325 1.564.615 3.98.806 6.133h-4.574V6.96zm-6.003-3.835h3.166v1.333h-3.166zM7.812 6.96h3.768v6.133H7.005c.19-2.154.48-4.57.807-6.134zm.37 9.835a.856.856 0 1 1-.002-1.708a.856.856 0 0 1 .002 1.706zm1.16-.857a.855.855 0 1 1 1.713-.001a.855.855 0 0 1-1.714.001zm.933 11.187l.99-1.715h9.47l.99 1.715zm10.67-11.187a.857.857 0 1 1 1.711.001a.857.857 0 0 1-1.71-.001z"/></svg>How to use the Train icon
React
import { Icon } from "@iconify/react";
<Icon icon="raphael:train" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="raphael:train" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="raphael:train" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[raphael--train]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/raphael -->
<div class="i-raphael:train"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="raphael:train"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/raphael/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. Raphael icons are released under the MIT 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="raphael: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/raphael/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.