ICONYZ
English
Rail icon from Maki

Rail icon

maki:rail

The Rail icon (maki:rail) is a free SVG icon from the Maki set by Mapbox. It is drawn on a 15 × 15 grid. Maki icons are released under the CC0 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
Maki
Author
Mapbox
License
CC0-1.0
Size
15 × 15
Tags
rail 15
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><path fill="currentColor" d="M3 1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm2.75.5h3.51a.25.25 0 1 1 0 .5H5.75a.25.25 0 1 1 0-.5M3.5 3H7v4H3.5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5M8 3h3.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5H8zM5 8a1 1 0 1 1 0 2a1 1 0 0 1 0-2m5 0a1 1 0 1 1 0 2a1 1 0 0 1 0-2m.445 3.994a.504.504 0 0 0-.425.676l.17.33H4.81l.13-.27a.5.5 0 0 0-.91-.41l-1 2a.5.5 0 0 0-.03.18a.5.5 0 0 0 .5.5a.49.49 0 0 0 .43-.26v-.05H4l.31-.69h6.38l.31.69v.05a.49.49 0 0 0 .43.26a.5.5 0 0 0 .5-.5a.5.5 0 0 0 0-.24l-1-2a.5.5 0 0 0-.485-.266"/></svg>

How to use the Rail icon

React

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

<Icon icon="maki:rail" width="24" />

Vue

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

<template>
  <Icon icon="maki:rail" width="24" />
</template>

Svelte

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

<Icon icon="maki:rail" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[maki--rail]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/maki -->
<div class="i-maki:rail"></div>

Web component

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

<iconify-icon icon="maki:rail"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/maki/rail.svg" alt="Rail icon" width="24" height="24">

Related icons in Maki

Rail icon in other icon sets

Rail icon FAQ

Is the Rail icon free for commercial use?

Yes. Maki icons are released under the CC0 license, which allows use in personal and commercial projects.

How do I use the Rail icon in React?

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

How do I add the Rail icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/maki/rail.svg" alt="Rail icon">, or paste the SVG code inline to style it with CSS.

Browse all Maki icons →