Piano icon
andrsrxn:piano
The Piano icon (andrsrxn:piano) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Media
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><rect width="7.51" height="20.71" fill="currentColor" opacity=".2" rx="2" transform="matrix(0 -1 -1 0 22.36 20.6)"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16.48 20.6c2.7 0 4.06 0 4.93-.81l.13-.14c.82-.86.82-2.23.82-4.96c0-2.67 0-4.01-.79-4.87l-.2-.2c-.85-.78-2.18-.78-4.84-.78h-.22c-.31 0-.47 0-.61-.04a1 1 0 0 1-.4-.23c-.1-.1-.18-.24-.34-.5l-.76-1.31l-.41-.7a6 6 0 0 0-4.6-2.65l-.81-.01c-.68 0-1.02 0-1.31.03a6 6 0 0 0-5.4 5.4c-.03.28-.03.62-.03 1.3v4.74c0 2.57 0 3.85.74 4.7l.3.3c.84.73 2.13.73 4.7.73zM1.82 13.47h20.54m-16.41 3.7v-3.7m4.09 3.7v-3.7m4.09 3.7v-3.7m4.09 3.7v-3.7"/></g></svg>How to use the Piano icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:piano" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:piano" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:piano" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--piano]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:piano"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:piano"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/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. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Piano icon in React?
Install @iconify/react and render <Icon icon="andrsrxn: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/andrsrxn/piano.svg" alt="Piano icon">, or paste the SVG code inline to style it with CSS.