Train Front icon
hugeicons:train-front
The Train Front icon (hugeicons:train-front) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
- Huge Icons
- Author
- Hugeicons
- License
- MIT
- Size
- 24 × 24
- Tags
- trainfront
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linejoin="round" d="M4 11v-1c0-3.771 0-5.657 1.172-6.828S8.229 2 12 2s5.657 0 6.828 1.172S20 6.229 20 10v1c0 3.771 0 5.657-1.172 6.828S15.771 19 12 19s-5.657 0-6.828-1.172S4 14.771 4 11Z"/><path stroke-linejoin="round" d="M4 12s3.733 1 8 1s8-1 8-1"/><path stroke-linecap="round" stroke-linejoin="round" d="m7 19l-2 3m12-3l2 3"/><path stroke-linecap="round" d="M4.5 16h2m11 0h2M5 5h14"/></g></svg>How to use the Train Front icon
React
import { Icon } from "@iconify/react";
<Icon icon="hugeicons:train-front" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="hugeicons:train-front" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="hugeicons:train-front" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--train-front]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:train-front"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="hugeicons:train-front"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/hugeicons/train-front.svg" alt="Train Front icon" width="24" height="24">Related icons in Huge Icons
Train Front icon in other icon sets
Train Front icon FAQ
Is the Train Front icon free for commercial use?
Yes. Huge 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="hugeicons: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/hugeicons/train-front.svg" alt="Train Front icon">, or paste the SVG code inline to style it with CSS.