Dev Helpers
← Back

Beat interval readout

Import and render <BeatIntervalReadout /> in a React project.

Open this example in the interactive library

Live preview

Source code

// components/BeatIntervalReadout.tsx

export default function BeatIntervalReadout({ bpm = 120 }: { bpm?: number } = {}) {
  return <output>{Math.round(60000 / Math.max(1, bpm))} ms per beat</output>;
}