Hiyve Components - v1.0.0
    Preparing search index...
    • A piano keyboard drawn as SVG, two octaves from middle C unless told otherwise. Keys can be tapped, lit as chosen, lit in the sounding colour while they sound (sounding), and marked with dots. Works with a finger, a mouse or the keyboard.

      The keys fill the space they are given, up to a comfortable size. Where the whole keyboard in one row would make the keys narrower than minKeyWidth, it is drawn in rows of whole octaves — the lowest at the bottom and the highest on top, as notes climb a staff — so every key stays in sight and big enough to tap.

      Parameters

      Returns Element

      <PianoKeyboard selected={chosen} onKeyTap={(midi) => toggle(midi)} showNames="c" />