Github icon
line-md:github
The Github icon (line-md:github) is a free SVG icon from the Material Line Icons set by Vjacheslav Trushkin. It is drawn on a 24 × 24 grid. Material Line 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
- Material Line Icons
- Author
- Vjacheslav Trushkin
- License
- MIT
- Size
- 24 × 24
- Category
- Social
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="32" d="M12 4c1.67 0 2.61 0.4 3 0.5c0.53 -0.43 1.94 -1.5 3.5 -1.5c0.34 1 0.29 2.22 0 3c0.75 1 1 2 1 3.5c0 2.19 -0.48 3.58 -1.5 4.5c-1.02 0.92 -2.11 1.37 -3.5 1.5c0.65 0.54 0.5 1.87 0.5 2.5c0 0.73 0 3 0 3M12 4c-1.67 0 -2.61 0.4 -3 0.5c-0.53 -0.43 -1.94 -1.5 -3.5 -1.5c-0.34 1 -0.29 2.22 0 3c-0.75 1 -1 2 -1 3.5c0 2.19 0.48 3.58 1.5 4.5c1.02 0.92 2.11 1.37 3.5 1.5c-0.65 0.54 -0.5 1.87 -0.5 2.5c0 0.73 0 3 0 3"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="32;0"/></path><path stroke-dasharray="10" stroke-dashoffset="10" d="M9 19c-1.41 0 -2.84 -0.56 -3.69 -1.19c-0.84 -0.63 -1.09 -1.66 -2.31 -2.31"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.7s" dur="0.2s" to="0"/></path></g></svg>How to use the Github icon
React
import { Icon } from "@iconify/react";
<Icon icon="line-md:github" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="line-md:github" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="line-md:github" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[line-md--github]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/line-md -->
<div class="i-line-md:github"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="line-md:github"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/line-md/github.svg" alt="Github icon" width="24" height="24">Related icons in Material Line Icons
Github icon in other icon sets
Github icon FAQ
Is the Github icon free for commercial use?
Yes. Material Line Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Github icon in React?
Install @iconify/react and render <Icon icon="line-md:github" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Github icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/line-md/github.svg" alt="Github icon">, or paste the SVG code inline to style it with CSS.