Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsThemed sets

Piano Keys

A two-octave piano keyboard that plays Web Audio notes, with computer-key mapping on every key, pressed states, glissando, octave shift, sustain and volume.

Preview

NoteB4
Freq493.9 Hz
RangeC4–C6
Volume70%
Note—
Freq— Hz
RangeC3–C4
Volume70%

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
defaultOctavenumber4Octave of the lowest C (C4 is middle C); [ and ] shift it.
octavesnumber2Octaves shown, plus the closing C.
defaultSustainbooleanfalseStart with sustain on: released notes ring out.
defaultVolumenumber70Volume 0–100.
showKeysbooleantruePrint the computer key on each piano key.
defaultPressednumber[][]MIDI notes shown held at first render (for docs and demos).
onNote(note: PianoNote) => void—Called for every note-on.
labelstring"Piano"Accessible name of the keyboard.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗