Piano icon
codicon:piano
The Piano icon (codicon:piano) 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="M13.5 2h-12C.673 2 0 2.673 0 3.5v9c0 .827.673 1.5 1.5 1.5h12c.827 0 1.5-.673 1.5-1.5v-9c0-.827-.673-1.5-1.5-1.5M11 13H8V9a1 1 0 0 0 1-1V3h1v5a1 1 0 0 0 1 1zM5 8V3h1v5a1 1 0 0 0 1 1v4H4V9a1 1 0 0 0 1-1m-4 4.5v-9c0-.275.225-.5.5-.5H2v5a1 1 0 0 0 1 1v4H1.5a.5.5 0 0 1-.5-.5m13 0c0 .275-.225.5-.5.5H12V9a1 1 0 0 0 1-1V3h.5c.275 0 .5.225.5.5z"/></svg>How to use the Piano icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:piano" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:piano" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:piano" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--piano]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:piano"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:piano"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/piano.svg" alt="Piano icon" width="24" height="24">Piano icon in other icon sets
Piano icon FAQ
Is the Piano 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 Piano icon in React?
Install @iconify/react and render <Icon icon="codicon:piano" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Piano icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/piano.svg" alt="Piano icon">, or paste the SVG code inline to style it with CSS.