---
generate_toc: true
---
import { ComponentExample } from "@/components/ComponentExample"
import { ComponentReference } from "@/components/ComponentReference"
export const metadata = {
title: `Prompt`,
}
# {metadata.title}
A component that displays a dialog prompting the user for their approval. It's useful when confirming destructive actions.
This component is useful if you want to control the prompt's content, format, and design. For a simpler approach that follows Medusa's prompt format, refer to the [usePrompt hook](../../hooks/use-prompt/page.mdx).
In this guide, you'll learn how to use the Prompt component.
## Usage
```tsx
import { Prompt } from "@medusajs/ui"
```
```tsx
Trigger
Title
Description
Cancel
Delete
```
---
## API Reference
---
## Examples
### Confirmation Prompt Variant
The `confirmation` variant is useful when confirming an operation that isn't destructive, such as deleting an item.