---
generate_toc: true
---
import { ComponentExample } from "@/components/ComponentExample"
import { ComponentReference } from "@/components/ComponentReference"
export const metadata = {
title: `Focus Modal`,
}
# {metadata.title}
A component for rendering a modal dialog shown over the main content.
In this guide, you'll learn how to use the Focus Modal component.
## Usage
```tsx
import { FocusModal } from "@medusajs/ui"
```
```tsx
Trigger
Title
Content
```
---
## API Reference
---
## Examples
### Control Focus Modal Open State
### Using Form in Focus Modal
### Nested Focus Modals
A focus modal can open another focus modal. These focus modals will be stacked on top of each other. You can nest as many focus modals as you want.