ICONYZ
English
Train Fill icon from Keyline Icons

Train Fill icon

keyline-icons:train-fill

The Train Fill icon (keyline-icons:train-fill) is a free SVG icon from the Keyline Icons set. It is drawn on a 24 × 24 grid. Keyline 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
Keyline Icons
Author
Keyline Icons
License
MIT
Size
24 × 24
Tags
trainfill
Download SVG

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-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" d="M7 1L17 1C19.2091 1 21 2.7909 21 5L21 15C21 17.2091 19.2091 19 17 19L7 19C4.7909 19 3 17.2091 3 15L3 5C3 2.7909 4.7909 1 7 1ZM7 3C5.8954 3 5 3.8954 5 5L5 8L19 8L19 5C19 3.8954 18.1046 3 17 3L7 3ZM10 13.5C10 12.6716 9.3284 12 8.5 12C7.6716 12 7 12.6716 7 13.5C7 14.3284 7.6716 15 8.5 15C9.3284 15 10 14.3284 10 13.5ZM17 13.5C17 12.6716 16.3284 12 15.5 12C14.6716 12 14 12.6716 14 13.5C14 14.3284 14.6716 15 15.5 15C16.3284 15 17 14.3284 17 13.5Z" stroke="none"/><path d="M4 5L2 5M20 5L22 5M7 18L5 22M17 18L19 22"/></g></svg>

How to use the Train Fill icon

React

import { Icon } from "@iconify/react";

<Icon icon="keyline-icons:train-fill" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="keyline-icons:train-fill" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="keyline-icons:train-fill" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[keyline-icons--train-fill]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/keyline-icons -->
<div class="i-keyline-icons:train-fill"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="keyline-icons:train-fill"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/keyline-icons/train-fill.svg" alt="Train Fill icon" width="24" height="24">

Related icons in Keyline Icons

Train Fill icon in other icon sets

Train Fill icon FAQ

Is the Train Fill icon free for commercial use?

Yes. Keyline Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Train Fill icon in React?

Install @iconify/react and render <Icon icon="keyline-icons:train-fill" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Train Fill icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/keyline-icons/train-fill.svg" alt="Train Fill icon">, or paste the SVG code inline to style it with CSS.

Browse all Keyline Icons →