KQ-589 · RECORD/HOLD
Record Hold
A hold-to-record button that puts the discard where the thumb already is. Pressing grows a ring around the mic on snap and opens a pill carrying a live procedural waveform and a rolling timer; dragging left slides the mic with the pointer, tilts it toward a bin that swaps in for the record dot, and past cancelDistance the lid lifts so releasing discards on the exit ease. Releasing in place throws the pill clear on recoil as Sent lands behind it; Space or Enter toggles recording and Escape cancels.
KQ-589 · RECORD/HOLD
Basinworks · site notesMax 0:30
Hold the mic to record
Hold to record, slide left to cancel. Space or Enter toggles recording; Escape cancels.
Idle · hold the mic
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/record-hold
Props
- onRecord
- (event: "start" | "stop" | "cancel", seconds: number) => void
- default —
- Lifecycle callback; seconds is the whole seconds held when the take ended.
- maxSeconds
- number
- default 60
- The take stops itself here, from inside the tick that crossed it.
- cancelDistance
- number
- default 96
- Pixels of leftward travel that arm the cancel and open the bin.
| Prop | Type | Default | Description |
|---|---|---|---|
| onRecord | (event: "start" | "stop" | "cancel", seconds: number) => void | — | Lifecycle callback; seconds is the whole seconds held when the take ended. |
| maxSeconds | number | 60 | The take stops itself here, from inside the tick that crossed it. |
| cancelDistance | number | 96 | Pixels of leftward travel that arm the cancel and open the bin. |