Train 20 icon
energy-icons:train-20
The Train 20 icon (energy-icons:train-20) is a free SVG icon from the Energy Icons set by Sam Passmore. It is drawn on a 20 × 20 grid. Energy 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
- Energy Icons
- Author
- Sam Passmore
- License
- MIT
- Size
- 20 × 20
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M15.333 4.583c0-.874-.71-1.583-1.583-1.583h-7.5c-.874 0-1.583.71-1.583 1.583v9.167c0 .874.71 1.583 1.583 1.583h7.5c.874 0 1.583-.71 1.583-1.583zm1 9.167a2.584 2.584 0 0 1-2.583 2.583h-7.5a2.584 2.584 0 0 1-2.583-2.583V4.583A2.584 2.584 0 0 1 6.25 2h7.5a2.584 2.584 0 0 1 2.583 2.583z"/><path fill="currentColor" d="M13.25 5.417a.333.333 0 0 0-.333-.334H7.083a.333.333 0 0 0-.333.334v2.5c0 .184.15.333.333.333h5.834c.184 0 .333-.15.333-.333zm1 2.5c0 .736-.597 1.333-1.333 1.333H7.083A1.333 1.333 0 0 1 5.75 7.917v-2.5c0-.737.596-1.334 1.333-1.334h5.834c.736 0 1.333.597 1.333 1.334zm-6.833 4.166a.333.333 0 1 0-.667 0a.333.333 0 0 0 .667 0m1 0a1.334 1.334 0 1 1-2.667.001a1.334 1.334 0 0 1 2.667-.001m4.833 0a.333.333 0 1 0-.666 0a.333.333 0 0 0 .666 0m1 0a1.333 1.333 0 1 1-2.667.001a1.333 1.333 0 0 1 2.667-.001M7.083 16.11l-1.667 2.5a.5.5 0 0 1-.832-.554l1.667-2.5zm8.333 1.946a.5.5 0 1 1-.832.554l-1.667-2.5l.832-.554z"/></svg>How to use the Train 20 icon
React
import { Icon } from "@iconify/react";
<Icon icon="energy-icons:train-20" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="energy-icons:train-20" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="energy-icons:train-20" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[energy-icons--train-20]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/energy-icons -->
<div class="i-energy-icons:train-20"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="energy-icons:train-20"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/energy-icons/train-20.svg" alt="Train 20 icon" width="24" height="24">Related icons in Energy Icons
Train 20 icon FAQ
Is the Train 20 icon free for commercial use?
Yes. Energy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Train 20 icon in React?
Install @iconify/react and render <Icon icon="energy-icons:train-20" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Train 20 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/energy-icons/train-20.svg" alt="Train 20 icon">, or paste the SVG code inline to style it with CSS.