---
title: "usePrompt"
description: ""
component: true
---
This hook can be used to prompt the user for confirmation of an action.
## Usage
---
```tsx
import { usePrompt } from "@medusajs/ui"
```
```tsx
const dialog = usePrompt()
const actionFunction = async () => {
const confirmed = await dialog({
title: "Are you sure?",
description: "Please confirm this action",
})
}
```
## API Reference
---
### Call Signature
`usePrompt()`
### usePrompt return
### UsePromptProps
## Examples
---
### Basic
### With Verification