usePrompt
This hook returns a function that prompts the user to confirm an action.
In this guide, you'll learn how to use the usePrompt hook.
Was this example helpful?
Usage#
API Reference#
usePrompt Return Value#
Was this guide helpful?
Returned Dialog Parameters#
The dialog function returned by usePrompt accepts an object having the following properties:
Dialog Return Value#
The dialog function returns a Promise that resolves to a boolean indicating whether the user confirmed the action.
Examples#
Prompt with Verification Text#
Was this guide helpful?