train from Iconoir by Luca Burgio · Regular · Transport · MIT Free for personal and commercial use.

Name
train
Set
Iconoir
Style
Regular
Category
Transport
Viewbox
24×24
License
MIT
Aliases
train-outline

The same icon in other sets

More transport icons from Iconoir

Use the train icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M9.609 7h4.782A2.61 2.61 0 0 1 17 9.609a.39.39 0 0 1-.391.391H7.39A.39.39 0 0 1 7 9.609A2.61 2.61 0 0 1 9.609 7"/><path stroke-linejoin="round" d="M9 3h6a6 6 0 0 1 6 6v4a6 6 0 0 1-6 6H9a6 6 0 0 1-6-6V9a6 6 0 0 1 6-6m7 12.01l.01-.011M8 15.01l.01-.011"/><path d="m10.5 19l-2 2.5m5-2.5l2 2.5m1-2.5l2 2.5M7.5 19l-2 2.5"/></g></svg>

React

import type { SVGProps } from "react";

export function IconoirTrain(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" strokeLinecap="round" strokeWidth="1.5"><path strokeLinejoin="round" d="M9.609 7h4.782A2.61 2.61 0 0 1 17 9.609a.39.39 0 0 1-.391.391H7.39A.39.39 0 0 1 7 9.609A2.61 2.61 0 0 1 9.609 7"/><path strokeLinejoin="round" d="M9 3h6a6 6 0 0 1 6 6v4a6 6 0 0 1-6 6H9a6 6 0 0 1-6-6V9a6 6 0 0 1 6-6m7 12.01l.01-.011M8 15.01l.01-.011"/><path d="m10.5 19l-2 2.5m5-2.5l2 2.5m1-2.5l2 2.5M7.5 19l-2 2.5"/></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M9.609 7h4.782A2.61 2.61 0 0 1 17 9.609a.39.39 0 0 1-.391.391H7.39A.39.39 0 0 1 7 9.609A2.61 2.61 0 0 1 9.609 7"/><path stroke-linejoin="round" d="M9 3h6a6 6 0 0 1 6 6v4a6 6 0 0 1-6 6H9a6 6 0 0 1-6-6V9a6 6 0 0 1 6-6m7 12.01l.01-.011M8 15.01l.01-.011"/><path d="m10.5 19l-2 2.5m5-2.5l2 2.5m1-2.5l2 2.5M7.5 19l-2 2.5"/></g></svg>
</template>

CSS

.icon-train {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M9.609%207h4.782A2.61%202.61%200%200%201%2017%209.609a.39.39%200%200%201-.391.391H7.39A.39.39%200%200%201%207%209.609A2.61%202.61%200%200%201%209.609%207%22%2F%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M9%203h6a6%206%200%200%201%206%206v4a6%206%200%200%201-6%206H9a6%206%200%200%201-6-6V9a6%206%200%200%201%206-6m7%2012.01l.01-.011M8%2015.01l.01-.011%22%2F%3E%3Cpath%20d%3D%22m10.5%2019l-2%202.5m5-2.5l2%202.5m1-2.5l2%202.5M7.5%2019l-2%202.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M9.609%207h4.782A2.61%202.61%200%200%201%2017%209.609a.39.39%200%200%201-.391.391H7.39A.39.39%200%200%201%207%209.609A2.61%202.61%200%200%201%209.609%207%22%2F%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M9%203h6a6%206%200%200%201%206%206v4a6%206%200%200%201-6%206H9a6%206%200%200%201-6-6V9a6%206%200%200%201%206-6m7%2012.01l.01-.011M8%2015.01l.01-.011%22%2F%3E%3Cpath%20d%3D%22m10.5%2019l-2%202.5m5-2.5l2%202.5m1-2.5l2%202.5M7.5%2019l-2%202.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/iconoir/train.svg?color=%231a73e8&size=48