Pulse Monitor, animated React component
A heart-rate card with a bedside-monitor ECG trace that sweeps and erases as it goes, a heart that beats on every spike and 24 hourly range bars you can scrub. Start a workout and the rate climbs, the beats close up and the colour warms.
- Pro
- Dashboards
- Hover
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Heart rate
68BPM
Peak 116Min 44
Today, 44 to 116 BPM
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| bpm | number | 68 | Resting heart rate. Also seeds the day's hourly ranges; a workout climbs to max(bpm + 50, 120). |
| color | string | "#ff375f" | Colour of the trace, heart and range bars at rest. |
| workoutColor | string | "#ff9f0a" | Colour everything warms to, and the button fills with, during a workout. |
| autoplay | boolean | false | Toggles a workout every ~10s and sweeps the hour readout along the bars until someone interacts. |