Train Filled icon
boxicons:train-filled
The Train Filled icon (boxicons:train-filled) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 17V6c0-2.21-1.79-4-4-4H8C5.79 2 4 3.79 4 6v11c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2M7.5 16c-.83 0-1.5-.67-1.5-1.5S6.67 13 7.5 13s1.5.67 1.5 1.5S8.33 16 7.5 16M18 17v-2.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11H6V6h12zM6.33 20L5 22h2.25L8 21h8l.75 1H19l-1.33-2z"/></svg>How to use the Train Filled icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:train-filled" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:train-filled" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:train-filled" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--train-filled]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:train-filled"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:train-filled"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/train-filled.svg" alt="Train Filled icon" width="24" height="24">Related icons in Boxicons
Train Filled icon in other icon sets
Train Filled icon FAQ
Is the Train Filled icon free for commercial use?
Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Train Filled icon in React?
Install @iconify/react and render <Icon icon="boxicons:train-filled" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Train Filled icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/train-filled.svg" alt="Train Filled icon">, or paste the SVG code inline to style it with CSS.