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*ReactNode—Button label content
onConfirm*() => void—Called when hold completes
classNamestring—Additional CSS classes

Source Code