Train Front icon
andrsrxn:train-front
The Train Front icon (andrsrxn:train-front) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Travel, Transport
- Tags
- trainfront
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M21.42 14.4c0-.38 0-.57-.05-.73a1 1 0 0 0-.63-.63c-.15-.05-.34-.05-.73-.05H4c-.39 0-.58 0-.73.05a1 1 0 0 0-.63.63c-.05.16-.05.35-.05.73c0 1.15 0 1.72.15 2.19a3 3 0 0 0 1.9 1.89a8 8 0 0 0 2.18.15H17.2c1.15 0 1.72 0 2.19-.15a3 3 0 0 0 1.89-1.9c.15-.46.15-1.03.15-2.18m-.01-8.58a1 1 0 0 1-.99.99H3.57a1 1 0 0 1-1-1a3 3 0 0 1 2.99-2.98h12.88a3 3 0 0 1 2.98 2.99" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5.9 18.63l-2.07 3.35m14.05-3.35l2.3 3.37m1.24-13.17c0-2.82 0-4.24-.87-5.12c-.88-.88-2.3-.88-5.13-.88H8.58c-2.83 0-4.25 0-5.13.88s-.87 2.3-.87 5.12v3.8c0 2.83 0 4.25.87 5.13c.88.87 2.3.87 5.13.87h6.84c2.83 0 4.25 0 5.13-.87c.87-.88.87-2.3.87-5.13zM2.78 12.99H21.1M2.78 6.81H21.1M5.46 15.7h3.5m5.87 0h3.69"/></g></svg>How to use the Train Front icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:train-front" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:train-front" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:train-front" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--train-front]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:train-front"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:train-front"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/train-front.svg" alt="Train Front icon" width="24" height="24">Related icons in andrsrxn/icons
Train Front icon in other icon sets
Train Front icon FAQ
Is the Train Front icon free for commercial use?
Yes. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Train Front icon in React?
Install @iconify/react and render <Icon icon="andrsrxn:train-front" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Train Front icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/train-front.svg" alt="Train Front icon">, or paste the SVG code inline to style it with CSS.