ICONYZ
English
Train Light icon from Phosphor

Train Light icon

ph:train-light

The Train Light icon (ph:train-light) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor icons are released under the MIT 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
Phosphor
Author
Phosphor Icons
License
MIT
Size
256 × 256
Tags
vehicles, subway, light rail, public transit, transportation, commuter, traveling, places, locations, trainlight
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M184 26H72a30 30 0 0 0-30 30v128a30 30 0 0 0 30 30h12l-16.8 22.4a6 6 0 1 0 9.6 7.2L99 214h58l22.2 29.6a6 6 0 0 0 9.6-7.2L172 214h12a30 30 0 0 0 30-30V56a30 30 0 0 0-30-30M54 122V78h68v44Zm80-44h68v44h-68ZM72 38h112a18 18 0 0 1 18 18v10H54V56a18 18 0 0 1 18-18m112 164H72a18 18 0 0 1-18-18v-50h148v50a18 18 0 0 1-18 18m-2-30a10 10 0 1 1-10-10a10 10 0 0 1 10 10m-88 0a10 10 0 1 1-10-10a10 10 0 0 1 10 10"/></svg>

How to use the Train Light icon

React

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

<Icon icon="ph:train-light" width="24" />

Vue

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

<template>
  <Icon icon="ph:train-light" width="24" />
</template>

Svelte

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

<Icon icon="ph:train-light" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="ph:train-light"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/ph/train-light.svg" alt="Train Light icon" width="24" height="24">

Related icons in Phosphor

Train Light icon FAQ

Is the Train Light icon free for commercial use?

Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Train Light icon in React?

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

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

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

Browse all Phosphor icons →