Subway icon
ph:subway
The Subway icon (ph:subway) 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, underground, train, tunnel, metro, light rail, public transit, transportation, commuter, traveling, places, locations
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M224 96v112a8 8 0 0 1-16 0V96a56.06 56.06 0 0 0-56-56h-48a56.06 56.06 0 0 0-56 56v112a8 8 0 0 1-16 0V96a72.08 72.08 0 0 1 72-72h48a72.08 72.08 0 0 1 72 72m-40 0v72a24 24 0 0 1-19.29 23.53l2.45 4.89a8 8 0 0 1-14.32 7.16L147.06 192h-38.12l-5.78 11.58a8 8 0 0 1-14.32-7.16l2.45-4.89A24 24 0 0 1 72 168V96a24 24 0 0 1 24-24h64a24 24 0 0 1 24 24m-96 0v48h80V96a8 8 0 0 0-8-8H96a8 8 0 0 0-8 8m32 64v16h16v-16Zm-24 16h8v-16H88v8a8 8 0 0 0 8 8m72-8v-8h-16v16h8a8 8 0 0 0 8-8"/></svg>How to use the Subway icon
React
import { Icon } from "@iconify/react";
<Icon icon="ph:subway" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="ph:subway" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="ph:subway" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[ph--subway]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/ph -->
<div class="i-ph:subway"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="ph:subway"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/ph/subway.svg" alt="Subway icon" width="24" height="24">Related icons in Phosphor
Subway icon in other icon sets
Subway icon FAQ
Is the Subway 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 Subway icon in React?
Install @iconify/react and render <Icon icon="ph:subway" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Subway icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/ph/subway.svg" alt="Subway icon">, or paste the SVG code inline to style it with CSS.