# Train icon — Nodo Icons

- Name: `train`
- Category: transport
- Tags: railway, metro, subway, locomotive
- Free style: Linear (MIT). Pro styles: Light, Bold, Sharp, Twotone, Duotone, Bulk, Solid, Contained, Soft.
- Page: https://nodoicons.com/icons/train/
- SVG (Linear): https://nodoicons.com/svg/linear/train.svg

## React

```jsx
import { TrainIcon } from '@nodo-icons/react';

<TrainIcon size={24} />
```

## Vue

```vue
<script setup>
import { TrainIcon } from '@nodo-icons/vue';
</script>

<template><TrainIcon :size="24" /></template>
```

## SVG (Linear)

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 15V7a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v8a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3Z"/><rect x="8" y="6" width="8" height="4.5" rx="1.5"/><circle cx="8.75" cy="14.5" r="0.75"/><circle cx="15.25" cy="14.5" r="0.75"/><line x1="8" y1="18" x2="6" y2="21"/><line x1="16" y1="18" x2="18" y2="21"/></svg>
```

## Pro styles

With Nodo Icons Pro: `import { TrainIcon } from '@nodo-icons/react-pro/<style>'`, where `<style>` is one of light, bold, sharp, twotone, duotone, bulk, solid, contained, soft. The Pro packages install from the Nodo Icons registry with your license key: https://nodoicons.com/docs/#nodo-icons-pro-in-react-and-vue. Pricing: https://nodoicons.com/#pricing

## Related icons

- [bullet-train](https://nodoicons.com/icons/bullet-train/index.md)
- [rail-track](https://nodoicons.com/icons/rail-track/index.md)
- [steam-train](https://nodoicons.com/icons/steam-train/index.md)
- [train-alert](https://nodoicons.com/icons/train-alert/index.md)
- [train-clock](https://nodoicons.com/icons/train-clock/index.md)
- [air-recirculation](https://nodoicons.com/icons/air-recirculation/index.md)
- [airbag](https://nodoicons.com/icons/airbag/index.md)
- [airship](https://nodoicons.com/icons/airship/index.md)
- [anchor](https://nodoicons.com/icons/anchor/index.md)
- [bicycle](https://nodoicons.com/icons/bicycle/index.md)
- [bicycle-lock](https://nodoicons.com/icons/bicycle-lock/index.md)
- [bicycle-unlock](https://nodoicons.com/icons/bicycle-unlock/index.md)
