ICONYZ
English
Train icon from Line Awesome

Train icon

la:train

The Train icon (la:train) is a free SVG icon from the Line Awesome set by Icons8. It is drawn on a 32 × 32 grid. Line Awesome icons are released under the Apache 2.0 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
Line Awesome
Author
Icons8
License
Apache-2.0
Size
32 × 32
Category
Objects
Tags
train solid
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M14 3c-1.258 0-2.152.89-2.594 2H10c-2.75 0-5 2.25-5 5v11a6.01 6.01 0 0 0 3.531 5.469L6 29h2.344l2.031-2.031c.2.02.418.031.625.031h10c.207 0 .426-.012.625-.031L23.656 29H26l-2.531-2.531A6.01 6.01 0 0 0 27 21V10c0-2.75-2.25-5-5-5h-1.406C20.152 3.89 19.258 3 18 3zm0 2h4c.566 0 1 .434 1 1v1h3c1.32 0 2.438.828 2.844 2H7.156A2.99 2.99 0 0 1 10 7h3V6c0-.566.434-1 1-1m-7 6h18v5H7zm0 7h18v3c0 2.219-1.781 4-4 4H11c-2.219 0-4-1.781-4-4zm9 1a1.999 1.999 0 1 0 0 4a1.999 1.999 0 1 0 0-4"/></svg>

How to use the Train icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/la/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. Line Awesome icons are released under the Apache 2.0 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="la: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/la/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.

Browse all Line Awesome icons →