train from Carbon by IBM · Outline · Planning · Apache-2.0 Free for personal and commercial use.

Name
train
Set
Carbon
Style
Outline
Category
Planning
Viewbox
32×32
License
Apache 2.0

The same icon in other sets

More planning icons from Carbon

Use the train icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M21 3H11a5.006 5.006 0 0 0-5 5v12a4.99 4.99 0 0 0 3.582 4.77L7.769 29h2.176l1.714-4h8.682l1.714 4h2.176l-1.813-4.23A4.99 4.99 0 0 0 26 20V8a5.006 5.006 0 0 0-5-5M11 5h10a2.995 2.995 0 0 1 2.816 2H8.184A2.995 2.995 0 0 1 11 5m13 14h-3v2h2.816A2.995 2.995 0 0 1 21 23H11a2.995 2.995 0 0 1-2.816-2H11v-2H8v-2h16Zm0-4H8V9h16Z"/></svg>

React

import type { SVGProps } from "react";

export function CarbonTrain(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M21 3H11a5.006 5.006 0 0 0-5 5v12a4.99 4.99 0 0 0 3.582 4.77L7.769 29h2.176l1.714-4h8.682l1.714 4h2.176l-1.813-4.23A4.99 4.99 0 0 0 26 20V8a5.006 5.006 0 0 0-5-5M11 5h10a2.995 2.995 0 0 1 2.816 2H8.184A2.995 2.995 0 0 1 11 5m13 14h-3v2h2.816A2.995 2.995 0 0 1 21 23H11a2.995 2.995 0 0 1-2.816-2H11v-2H8v-2h16Zm0-4H8V9h16Z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M21 3H11a5.006 5.006 0 0 0-5 5v12a4.99 4.99 0 0 0 3.582 4.77L7.769 29h2.176l1.714-4h8.682l1.714 4h2.176l-1.813-4.23A4.99 4.99 0 0 0 26 20V8a5.006 5.006 0 0 0-5-5M11 5h10a2.995 2.995 0 0 1 2.816 2H8.184A2.995 2.995 0 0 1 11 5m13 14h-3v2h2.816A2.995 2.995 0 0 1 21 23H11a2.995 2.995 0 0 1-2.816-2H11v-2H8v-2h16Zm0-4H8V9h16Z"/></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%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M21%203H11a5.006%205.006%200%200%200-5%205v12a4.99%204.99%200%200%200%203.582%204.77L7.769%2029h2.176l1.714-4h8.682l1.714%204h2.176l-1.813-4.23A4.99%204.99%200%200%200%2026%2020V8a5.006%205.006%200%200%200-5-5M11%205h10a2.995%202.995%200%200%201%202.816%202H8.184A2.995%202.995%200%200%201%2011%205m13%2014h-3v2h2.816A2.995%202.995%200%200%201%2021%2023H11a2.995%202.995%200%200%201-2.816-2H11v-2H8v-2h16Zm0-4H8V9h16Z%22%2F%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%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M21%203H11a5.006%205.006%200%200%200-5%205v12a4.99%204.99%200%200%200%203.582%204.77L7.769%2029h2.176l1.714-4h8.682l1.714%204h2.176l-1.813-4.23A4.99%204.99%200%200%200%2026%2020V8a5.006%205.006%200%200%200-5-5M11%205h10a2.995%202.995%200%200%201%202.816%202H8.184A2.995%202.995%200%200%201%2011%205m13%2014h-3v2h2.816A2.995%202.995%200%200%201%2021%2023H11a2.995%202.995%200%200%201-2.816-2H11v-2H8v-2h16Zm0-4H8V9h16Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

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