Rails icon
roentgen:rails
The Rails icon (roentgen:rails) is a free SVG icon from the Röntgen set by Sergey Vartanov. It is drawn on a 24 × 24 grid. Röntgen icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Röntgen
- Author
- Sergey Vartanov
- License
- CC-BY-4.0
- Size
- 24 × 24
- Tags
- rail
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M4 1v1H2.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H4v1H2.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H4v1H2.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H4v1h1v-1h6v1h1v-1h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H12V9h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H12V5h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H12V1h-1v1H5V1zM3 3.5a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0m9 0a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0M5 6V5h6v1zM3 7.5a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0m9 0a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0M5 10V9h6v1zm-2 1.5a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0m9 0a.5.5 0 1 1 1 0a.5.5 0 0 1-1 0"/></svg>How to use the Rails icon
React
import { Icon } from "@iconify/react";
<Icon icon="roentgen:rails" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="roentgen:rails" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="roentgen:rails" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[roentgen--rails]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/roentgen -->
<div class="i-roentgen:rails"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="roentgen:rails"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/roentgen/rails.svg" alt="Rails icon" width="24" height="24">Related icons in Röntgen
Rails icon in other icon sets
Rails icon FAQ
Is the Rails icon free for commercial use?
Yes. Röntgen icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Rails icon in React?
Install @iconify/react and render <Icon icon="roentgen:rails" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Rails icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/roentgen/rails.svg" alt="Rails icon">, or paste the SVG code inline to style it with CSS.