# Typed confirm dialog

https://fieldbook.lizardi.mx/components/typed-confirm-dialog

Category: Overlays
![Still of the Typed confirm dialog component, a Fieldbook UI component in Overlays.](https://fieldbook.lizardi.mx/thumbs/typed-confirm-dialog.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/typed-confirm-dialog-74583e03cb.mp4 (5 s, silent)

Typed confirm dialog: A destructive-action dialog whose confirm button only unlocks once someone types an exact matching phrase, guarding against accidental clicks.

## 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 |
| --- | --- | --- | --- |
| confirmPhrase | text | delete | Up to 24 characters |
| accentColor | color | #FF4D8D | No additional limit in the metadata. |
| dangerLabel | text | Delete project | Up to 32 characters |

## Usage notes

Typed confirm dialog uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Typed confirm dialog?

Typed confirm dialog 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 Typed confirm dialog depend on?

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

### What accessibility details are visible in Typed confirm dialog?

The React source for Typed confirm dialog includes: native elements (button, label); attributes and handlers (aria-describedby, aria-hidden, aria-live, onKeyDown); explicit roles (alertdialog, status); key comparisons (Enter). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Typed confirm dialog handle reduced motion?

Typed confirm dialog reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.16; duration: reduced ? 0 : 0.2; exitTransition: reduced ? \{ duration: 0 \} : \{ duration: 0.16, ease: \[0.4, 0, 1, 1\] \}. 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": "typed-confirm-dialog",
    "framework": "react"
  }
}
```

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

## Related open components

- [Bounce warning dialog](https://fieldbook.lizardi.mx/components/bounce-warning-dialog)
- [Consequence confirm dialog](https://fieldbook.lizardi.mx/components/consequence-confirm-dialog)
- [Destructive confirm dialog](https://fieldbook.lizardi.mx/components/destructive-confirm-dialog)
- [Centered modal frame](https://fieldbook.lizardi.mx/components/centered-modal-frame)
- [Confirm action modal](https://fieldbook.lizardi.mx/components/confirm-action-modal)
- [Focus-Trapped Modal Kit](https://fieldbook.lizardi.mx/components/focus-trapped-modal-kit)
