Train icon

A hand-drawn train icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.

Category
Travel
Grid
24 × 24
Strokes
1.5 · 2 · 2.5
Name
train

Stroke weights and sizes

Train icon, thin · 1.5 stroke
Thin · 1.5
Train icon, regular · 2 stroke
Regular · 2
Train icon, bold · 2.5 stroke
Bold · 2.5
Train icon at 16px
16px
Train icon at 24px
24px
Train icon at 32px
32px
Train icon at 48px
48px

Use it in React Native

Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.

TSX TrainIcon.tsx
import { SvgXml } from "react-native-svg";

const TrainIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M4.4 15.9L4.4 9.1C4.4 8 5.3 7.1 6.4 7.1L17.6 7.1C18.7 7.1 19.6 8 19.6 9.1L19.6 15.9L4.4 15.9Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.6 10.9L9 10.9M10.4 10.9L12.8 10.9M14.2 10.9L16.6 10.9"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.4 7.1L6.4 5.4"></path><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.3" cy="17.8" r="1.4"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="16.7" cy="17.8" r="1.4"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.7 17.8L15.3 17.8"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="3" y1="20.4" x2="21" y2="20.4"></line><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="6.4" cy="4" r="1.05"></circle></svg>`;

<SvgXml xml={TrainIcon} width={24} height={24} color="#111" />

SVG code

The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.

SVG train.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M4.4 15.9L4.4 9.1C4.4 8 5.3 7.1 6.4 7.1L17.6 7.1C18.7 7.1 19.6 8 19.6 9.1L19.6 15.9L4.4 15.9Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.6 10.9L9 10.9M10.4 10.9L12.8 10.9M14.2 10.9L16.6 10.9"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.4 7.1L6.4 5.4"></path><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.3" cy="17.8" r="1.4"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="16.7" cy="17.8" r="1.4"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.7 17.8L15.3 17.8"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="3" y1="20.4" x2="21" y2="20.4"></line><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="6.4" cy="4" r="1.05"></circle></svg>

On the web, link it straight from the CDN:

HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/train.svg" width="24" height="24" alt="Train" />

Related icons

All 75 travel icons → · Browse all 3,072 icons