Piano icon
A hand-drawn piano icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Media
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
piano
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX PianoIcon.tsx
import { SvgXml } from "react-native-svg";
const PianoIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x="3.2" y="5.2" width="17.6" height="13.6" rx="2"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="6.5" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="11.05" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="15.6" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M3.2 13.4L20.8 13.4"></path></svg>`;
<SvgXml xml={PianoIcon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG piano.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x="3.2" y="5.2" width="17.6" height="13.6" rx="2"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="6.5" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="11.05" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><rect stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" x="15.6" y="5.2" width="1.9" height="6.6" rx="0.7"></rect><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M3.2 13.4L20.8 13.4"></path></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/piano.svg" width="24" height="24" alt="Piano" />