ICONYZ
English
Piano icon from BoxIcons v2 Solid

Piano icon

bxs:piano

The Piano icon (bxs:piano) is a free SVG icon from the BoxIcons v2 Solid set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 Solid 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
BoxIcons v2 Solid
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 3H5C3.346 3 2 4.346 2 6v12c0 1.654 1.346 3 3 3h14c1.654 0 3-1.346 3-3V6c0-1.654-1.346-3-3-3m0 16H5a1 1 0 0 1-1-1v-6h2v4h2v-4h1v4h2v-4h1v4h2v-4h2v4h2v-4h2v6a1 1 0 0 1-1 1"/></svg>

How to use the Piano icon

React

import { Icon } from "@iconify/react";

<Icon icon="bxs:piano" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="bxs:piano" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="bxs:piano" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[bxs--piano]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/bxs -->
<div class="i-bxs:piano"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="bxs:piano"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bxs/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. BoxIcons v2 Solid 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="bxs: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/bxs/piano.svg" alt="Piano icon">, or paste the SVG code inline to style it with CSS.

Browse all BoxIcons v2 Solid icons →