train icon
train-fill from Keyline Icons by Keyline Icons · Fill · MIT Free for personal and commercial use.
- Name
- train-fill
- Set
- Keyline Icons
- Style
- Fill
- Viewbox
- 24×24
- License
- MIT
7 other variants in Keyline Icons
The same icon 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
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-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>
React
import type { SVGProps } from "react";
export function KeylineIconsTrainFill(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" strokeLinejoin="round" strokeWidth="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>
);
}
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-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> </template>
CSS
.icon-train-fill {
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-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M7%201L17%201C19.2091%201%2021%202.7909%2021%205L21%2015C21%2017.2091%2019.2091%2019%2017%2019L7%2019C4.7909%2019%203%2017.2091%203%2015L3%205C3%202.7909%204.7909%201%207%201ZM7%203C5.8954%203%205%203.8954%205%205L5%208L19%208L19%205C19%203.8954%2018.1046%203%2017%203L7%203ZM10%2013.5C10%2012.6716%209.3284%2012%208.5%2012C7.6716%2012%207%2012.6716%207%2013.5C7%2014.3284%207.6716%2015%208.5%2015C9.3284%2015%2010%2014.3284%2010%2013.5ZM17%2013.5C17%2012.6716%2016.3284%2012%2015.5%2012C14.6716%2012%2014%2012.6716%2014%2013.5C14%2014.3284%2014.6716%2015%2015.5%2015C16.3284%2015%2017%2014.3284%2017%2013.5Z%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M4%205L2%205M20%205L22%205M7%2018L5%2022M17%2018L19%2022%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-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M7%201L17%201C19.2091%201%2021%202.7909%2021%205L21%2015C21%2017.2091%2019.2091%2019%2017%2019L7%2019C4.7909%2019%203%2017.2091%203%2015L3%205C3%202.7909%204.7909%201%207%201ZM7%203C5.8954%203%205%203.8954%205%205L5%208L19%208L19%205C19%203.8954%2018.1046%203%2017%203L7%203ZM10%2013.5C10%2012.6716%209.3284%2012%208.5%2012C7.6716%2012%207%2012.6716%207%2013.5C7%2014.3284%207.6716%2015%208.5%2015C9.3284%2015%2010%2014.3284%2010%2013.5ZM17%2013.5C17%2012.6716%2016.3284%2012%2015.5%2012C14.6716%2012%2014%2012.6716%2014%2013.5C14%2014.3284%2014.6716%2015%2015.5%2015C16.3284%2015%2017%2014.3284%2017%2013.5Z%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M4%205L2%205M20%205L22%205M7%2018L5%2022M17%2018L19%2022%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/keyline-icons/train-fill.svg?color=%231a73e8&size=48