Ruby icon
codicon:ruby
The Ruby icon (codicon:ruby) 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
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M3.5 2a.5.5 0 0 0-.447.276l-2 4a.5.5 0 0 0 .059.54l6.5 8a.5.5 0 0 0 .776 0l6.5-8a.5.5 0 0 0 .06-.54l-2-4A.5.5 0 0 0 12.5 2zM2.309 6l1.5-3h2.05l-.75 3zm.241 1h2.583l1.613 5.164zm3.63 0h3.64L8 12.823zm4.688 0h2.582l-4.196 5.164zm2.823-1h-2.8l-.75-3h2.05zM9.86 6H6.14l.75-3h2.22z"/></svg>How to use the Ruby icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:ruby" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:ruby" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:ruby" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--ruby]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:ruby"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:ruby"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/ruby.svg" alt="Ruby icon" width="24" height="24">Ruby icon in other icon sets
Ruby icon FAQ
Is the Ruby 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 Ruby icon in React?
Install @iconify/react and render <Icon icon="codicon:ruby" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Ruby icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/ruby.svg" alt="Ruby icon">, or paste the SVG code inline to style it with CSS.