ICONYZ
English
Toy Train icon from Huge Icons

Toy Train icon

hugeicons:toy-train

The Toy Train icon (hugeicons:toy-train) 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
toytrain
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="1.5"><circle cx="7" cy="18" r="2"/><circle cx="17" cy="18" r="2"/><path d="M2 4h11M6 8h2m7 4.5h.5M3 4v12c0 .465 0 .698.051.888a1.5 1.5 0 0 0 1.06 1.06C4.304 18 4.536 18 5 18m7 0V4M9 18h6m-3-8h4.86c1.364 0 1.694.27 1.962 1.608c.097.486.015.858.52.898c.84.068 1.432.633 1.749 1.373C21.546 14.94 22 15.832 22 17c0 .471 0 .707-.146.854C21.707 18 21.47 18 21 18h-2m-3-8V7m0 0h-1m1 0h1"/></g></svg>

How to use the Toy Train icon

React

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

<Icon icon="hugeicons:toy-train" width="24" />

Vue

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

<template>
  <Icon icon="hugeicons:toy-train" width="24" />
</template>

Svelte

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

<Icon icon="hugeicons:toy-train" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--toy-train]"></span>

UnoCSS

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

Web component

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

<iconify-icon icon="hugeicons:toy-train"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/hugeicons/toy-train.svg" alt="Toy Train icon" width="24" height="24">

Related icons in Huge Icons

Toy Train icon in other icon sets

Toy Train icon FAQ

Is the Toy Train 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 Toy Train icon in React?

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

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

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

Browse all Huge Icons →