# Centered modal frame

https://fieldbook.lizardi.mx/components/centered-modal-frame

Category: Overlays
![Still of the Centered modal frame component, a Fieldbook UI component in Overlays.](https://fieldbook.lizardi.mx/thumbs/centered-modal-frame.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/centered-modal-frame-f344175e82.mp4 (5 s, silent)

Centered modal frame: A plain centered modal that fades and scales in over a dimmed backdrop, with a header, body and footer, for everyday forms and confirmations.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| title | text | Edit profile | Up to 50 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| showCloseButton | boolean | true | No additional limit in the metadata. |
| width | number | 420 | From 320 to 560; step 10 |

## Usage notes

Centered modal frame uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Centered modal frame?

Centered modal frame is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Centered modal frame depend on?

The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.

### What accessibility details are visible in Centered modal frame?

The React source for Centered modal frame includes: native elements (button); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Centered modal frame handle reduced motion?

Centered modal frame reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.14; duration: reduced ? 0 : 0.18; duration: reduced ? 0 : 0.2. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "centered-modal-frame",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Confirm action modal](https://fieldbook.lizardi.mx/components/confirm-action-modal)
- [Perspective reveal dialog](https://fieldbook.lizardi.mx/components/perspective-reveal-dialog)
- [Bounce warning dialog](https://fieldbook.lizardi.mx/components/bounce-warning-dialog)
- [Consequence confirm dialog](https://fieldbook.lizardi.mx/components/consequence-confirm-dialog)
- [Focus-Trapped Modal Kit](https://fieldbook.lizardi.mx/components/focus-trapped-modal-kit)
- [Typed confirm dialog](https://fieldbook.lizardi.mx/components/typed-confirm-dialog)
