Horizontal Rule icon
codicon:horizontal-rule
The Horizontal Rule icon (codicon:horizontal-rule) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons 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
- Codicons
- Author
- Microsoft Corporation
- License
- CC-BY-4.0
- Size
- 24 × 24
- Tags
- horizontalrule
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M14.5 13.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1 0-1h12a.5.5 0 0 1 .5.5M2.5 11a.5.5 0 0 0 .5-.5v-3h3v3a.5.5 0 0 0 1 0v-7a.5.5 0 0 0-1 0v3H3v-3a.5.5 0 0 0-1 0v7a.5.5 0 0 0 .5.5m6.5-.5v-7a.5.5 0 0 1 .5-.5h2.25C12.99 3 14 4.009 14 5.25c0 .892-.526 1.657-1.28 2.021c.606.664.901 1.609 1.091 2.236c.058.189.132.437.186.558a.5.5 0 0 1-.247.935c-.531 0-.692-.531-.896-1.203C12.487 8.587 12.069 7.5 11 7.5h-1v3a.5.5 0 0 1-1 0m1-4h1.75c.689 0 1.25-.561 1.25-1.25S12.439 4 11.75 4H10z"/></svg>How to use the Horizontal Rule icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:horizontal-rule" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:horizontal-rule" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:horizontal-rule" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--horizontal-rule]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:horizontal-rule"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:horizontal-rule"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/horizontal-rule.svg" alt="Horizontal Rule icon" width="24" height="24">Horizontal Rule icon in other icon sets
Horizontal Rule icon FAQ
Is the Horizontal Rule icon free for commercial use?
Yes. Codicons 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 Horizontal Rule icon in React?
Install @iconify/react and render <Icon icon="codicon:horizontal-rule" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Horizontal Rule icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/horizontal-rule.svg" alt="Horizontal Rule icon">, or paste the SVG code inline to style it with CSS.