Radical
How-to guides

Send haptic feedback

Add feedback to a completed action or selection.

Enable haptics

Apply capability setup with internalPlugins.haptics: true:

pnpm add @capacitor/haptics@8.0.2

Connect feedback

Call the hook in your component:

const feedback = useHapticFeedback(); // @akshatowo/radical/react
TriggerCall
Successfeedback.success()
Selectionfeedback.selection()
Impactfeedback.light(), .medium(), .heavy(), or .impact("HEAVY")
Warningfeedback.warning()
Errorfeedback.error()
Failure handlingRead feedback.failure
Success does not prove the hardware vibrated.

See Haptics reference.

On this page