ICONYZ
English
Train Line icon from MingCute Icon

Train Line icon

mingcute:train-line

The Train Line icon (mingcute:train-line) is a free SVG icon from the MingCute Icon set by MingCute Design. It is drawn on a 24 × 24 grid. MingCute Icon 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
MingCute Icon
Author
MingCute Design
License
Apache-2.0
Size
24 × 24
Tags
trainline
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M2 18a1 1 0 1 0 0 2zm19 2a1 1 0 1 0 0-2zM2 10a1 1 0 1 0 0 2zm19.5 2a1 1 0 1 0 0-2zM9 6a1 1 0 0 0-2 0zm-2 5a1 1 0 1 0 2 0zm6 0a1 1 0 1 0 2 0zM2.998 6v1H12V5H2.998zM17 16v-1H2.994v2H17zM2 15h1V7H1v8zm10-9v1c2.776 0 5.058.925 6.632 2.161C20.241 10.425 21 11.915 21 13h2c0-1.915-1.24-3.925-3.132-5.411C17.942 6.075 15.224 5 12 5zm10 7h-1c0 .408-.117.69-.287.906c-.182.232-.466.441-.864.615c-.814.357-1.903.479-2.849.479v2c1.054 0 2.465-.128 3.65-.646c.603-.264 1.194-.648 1.637-1.213c.455-.58.713-1.3.713-2.141zM2 19v1h19v-2H2zm0-8v1h19.5v-2H2zm6-5H7v5h2V6zm6 0h-1v5h2V6zM2.994 16v-1q-.003 0 0 0l.003.001l.003.002V15H1c0 1.096.881 2 1.994 2zm.004-10V5A2 2 0 0 0 1 7h2v-.002q0 .002 0 0L2.999 7h-.002z"/></svg>

How to use the Train Line icon

React

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

<Icon icon="mingcute:train-line" width="24" />

Vue

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

<template>
  <Icon icon="mingcute:train-line" width="24" />
</template>

Svelte

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

<Icon icon="mingcute:train-line" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="mingcute:train-line"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/mingcute/train-line.svg" alt="Train Line icon" width="24" height="24">

Related icons in MingCute Icon

Train Line icon in other icon sets

Train Line icon FAQ

Is the Train Line icon free for commercial use?

Yes. MingCute Icon icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Train Line icon in React?

Install @iconify/react and render <Icon icon="mingcute:train-line" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Train Line icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/mingcute/train-line.svg" alt="Train Line icon">, or paste the SVG code inline to style it with CSS.

Browse all MingCute Icon icons →