Train icon
Download the Train icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- railway
- rail
- locomotive
- metro
- transport
- travel
- railroad
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- general
- Styles
- Outline, filled
- Component
- IconTrain
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
train.svg
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M21 13c0 -3.87 -3.37 -7 -10 -7h-8" />
<path d="M3 15h16a2 2 0 0 0 2 -2" />
<path d="M3 6v5h17.5" />
<path d="M3 11v4" />
<path d="M8 11v-5" />
<path d="M13 11v-4.5" />
<path d="M3 19h18" />
</svg> Use the Train icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconTrain } from '@tabler/icons-react';
<IconTrain size={24} stroke={2} />Read the React guideVue example
import { IconTrain } from '@tabler/icons-vue';
<IconTrain :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconTrain } from '@tabler/icons-svelte-runes';
<IconTrain size={24} stroke={2} />Read the Svelte guideRelated