train emoji
train from OpenMoji by OpenMoji · Default · Travel Places · CC-BY-SA-4.0 Attribution required.
- Name
- train
- Set
- OpenMoji
- Style
- Default
- Category
- Travel Places
- Viewbox
- 72×72
- License
- CC BY-SA 4.0
The same emoji in other sets
trainBoxIcons v2trainBoxIcons v2 SolidtrainCarbontrainEmoji One (Colored)trainFont Awesome 6 SolidtrainFont Awesome SolidtrainFluent EmojitrainFluent Emoji FlattrainFluent Emoji High ContrasttrainFirefox OS EmojitrainIconParktrainIconPark OutlinetrainIconPark SolidtrainIconPark TwoTonetrainIconoirtrainIonIconstrainJam IconstrainLine AwesometrainMaterial SymbolstrainMaterial Symbols LighttrainMaterial Design Iconstrain-fillMingCute IcontrainMyna UI IconstrainNoto Emoji
More travel places icons from OpenMoji
Use the train emoji
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><rect width="28.8" height="33.6" x="21.6" y="11" fill="#d0cfce" rx="3.056" ry="3.056"/><path fill="#3f3f3f" d="M25 18h22v10H25z"/><path fill="#fcea2b" d="M25 35h5v5h-5zm17 0h5v5h-5z"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-width="2"><path stroke-miterlimit="10" d="M25 48L12 61m48 0L47 48m-34 9.936l46.333.264M17 53.936l38.333.264M21 49.936l30.333.264"/><path stroke-linejoin="round" d="M47 19v8.8H26M26 40h4v-4m13 4h4v-4"/><rect width="28.8" height="33.6" x="21.6" y="11" stroke-linejoin="round" rx="3.056" ry="3.056"/></g></svg>
React
import type { SVGProps } from "react";
export function OpenmojiTrain(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><rect width="28.8" height="33.6" x="21.6" y="11" fill="#d0cfce" rx="3.056" ry="3.056"/><path fill="#3f3f3f" d="M25 18h22v10H25z"/><path fill="#fcea2b" d="M25 35h5v5h-5zm17 0h5v5h-5z"/><g fill="none" stroke="#000" strokeLinecap="round" strokeWidth="2"><path strokeMiterlimit="10" d="M25 48L12 61m48 0L47 48m-34 9.936l46.333.264M17 53.936l38.333.264M21 49.936l30.333.264"/><path strokeLinejoin="round" d="M47 19v8.8H26M26 40h4v-4m13 4h4v-4"/><rect width="28.8" height="33.6" x="21.6" y="11" strokeLinejoin="round" rx="3.056" ry="3.056"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><rect width="28.8" height="33.6" x="21.6" y="11" fill="#d0cfce" rx="3.056" ry="3.056"/><path fill="#3f3f3f" d="M25 18h22v10H25z"/><path fill="#fcea2b" d="M25 35h5v5h-5zm17 0h5v5h-5z"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-width="2"><path stroke-miterlimit="10" d="M25 48L12 61m48 0L47 48m-34 9.936l46.333.264M17 53.936l38.333.264M21 49.936l30.333.264"/><path stroke-linejoin="round" d="M47 19v8.8H26M26 40h4v-4m13 4h4v-4"/><rect width="28.8" height="33.6" x="21.6" y="11" stroke-linejoin="round" rx="3.056" ry="3.056"/></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%2072%2072%22%3E%3Crect%20width%3D%2228.8%22%20height%3D%2233.6%22%20x%3D%2221.6%22%20y%3D%2211%22%20fill%3D%22%23d0cfce%22%20rx%3D%223.056%22%20ry%3D%223.056%22%2F%3E%3Cpath%20fill%3D%22%233f3f3f%22%20d%3D%22M25%2018h22v10H25z%22%2F%3E%3Cpath%20fill%3D%22%23fcea2b%22%20d%3D%22M25%2035h5v5h-5zm17%200h5v5h-5z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20stroke-miterlimit%3D%2210%22%20d%3D%22M25%2048L12%2061m48%200L47%2048m-34%209.936l46.333.264M17%2053.936l38.333.264M21%2049.936l30.333.264%22%2F%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M47%2019v8.8H26M26%2040h4v-4m13%204h4v-4%22%2F%3E%3Crect%20width%3D%2228.8%22%20height%3D%2233.6%22%20x%3D%2221.6%22%20y%3D%2211%22%20stroke-linejoin%3D%22round%22%20rx%3D%223.056%22%20ry%3D%223.056%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%2072%2072%22%3E%3Crect%20width%3D%2228.8%22%20height%3D%2233.6%22%20x%3D%2221.6%22%20y%3D%2211%22%20fill%3D%22%23d0cfce%22%20rx%3D%223.056%22%20ry%3D%223.056%22%2F%3E%3Cpath%20fill%3D%22%233f3f3f%22%20d%3D%22M25%2018h22v10H25z%22%2F%3E%3Cpath%20fill%3D%22%23fcea2b%22%20d%3D%22M25%2035h5v5h-5zm17%200h5v5h-5z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20stroke-miterlimit%3D%2210%22%20d%3D%22M25%2048L12%2061m48%200L47%2048m-34%209.936l46.333.264M17%2053.936l38.333.264M21%2049.936l30.333.264%22%2F%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M47%2019v8.8H26M26%2040h4v-4m13%204h4v-4%22%2F%3E%3Crect%20width%3D%2228.8%22%20height%3D%2233.6%22%20x%3D%2221.6%22%20y%3D%2211%22%20stroke-linejoin%3D%22round%22%20rx%3D%223.056%22%20ry%3D%223.056%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/openmoji/train.svg?color=%231a73e8&size=48