National Rail icon
thesvg:national-rail
The National Rail icon (thesvg:national-rail) is a free SVG icon from the theSVG set by thesvg.org. It is drawn on a 24 × 24 grid. theSVG icons are released under the MIT 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
- theSVG
- Author
- thesvg.org
- License
- MIT
- Size
- 24 × 24
- Tags
- nationalrail
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M0 12C0 5.373 5.372 0 12 0c6.627 0 11.999 5.373 11.999 12c0 6.628-5.372 12-11.999 12S0 18.628 0 12m6.195-5.842l6.076 2.794H2.835v1.884h9.499l-4.616 2.246H2.835v1.868h4.883l5.778 2.795h4.333l-6.092-2.795h9.469v-1.868h-9.453l4.616-2.246h4.837V8.952h-4.868l-5.777-2.794z"/></svg>How to use the National Rail icon
React
import { Icon } from "@iconify/react";
<Icon icon="thesvg:national-rail" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="thesvg:national-rail" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="thesvg:national-rail" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[thesvg--national-rail]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/thesvg -->
<div class="i-thesvg:national-rail"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="thesvg:national-rail"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/thesvg/national-rail.svg" alt="National Rail icon" width="24" height="24">Related icons in theSVG
National Rail icon in other icon sets
National Rail icon FAQ
Is the National Rail icon free for commercial use?
Yes. theSVG icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the National Rail icon in React?
Install @iconify/react and render <Icon icon="thesvg:national-rail" />, or use “Copy code” on this page to get a standalone React component.
How do I add the National Rail icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/thesvg/national-rail.svg" alt="National Rail icon">, or paste the SVG code inline to style it with CSS.