ConfirmButton

A safety pattern for destructive actions. The hold-to-confirm interaction requires deliberate intent — the user must maintain pressure while watching the red fill progress. This prevents accidental deletions without the friction of a confirmation dialog.

API Reference

PropTypeDefaultDescription
children*ReactNodeButton label content
onConfirm*() => voidCalled when hold completes
classNamestringAdditional CSS classes

Source Code