AudioRecordingButton

AudioRecordingButton is the mic button for starting/controlling recording gestures.

Internally it handles press/long-press gesture logic, slide-to-cancel and slide-to-lock thresholds, permission prompts, and haptic feedback.

Props

PropDescriptionType
buttonSizeMic button size.number
handleLongPressCustom long-press handler.() => void
handlePressCustom press handler.() => void
cancellableDurationControls whether recording can be canceled by duration/gesture behavior.boolean

Context-backed override props

  • asyncMessagesMinimumPressDuration
  • asyncMessagesSlideToCancelDistance
  • asyncMessagesLockDistance
  • audioRecordingSendOnComplete
  • audioRecorderManager
  • startVoiceRecording
  • deleteVoiceRecording
  • uploadVoiceRecording
  • recording
  • status