Record Button

A microphone toggle with three states: idle, recording (pulsing dot with dual rings), and confirmed (checkmark). Respects prefers-reduced-motion.

core/record-button

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Click to cycle through idle → recording → confirmed states.

API Reference

PropTypeDescription
recording
booleanWhether recording is currently active.
confirmed
booleanCompleted/saved state — shows a checkmark.
recordingClassName
stringClass applied to the recording indicator (default: red-500).
confirmedClassName
stringClass applied to the checkmark icon (default: text-primary).