Get the kit
Components / Navigation & overlaysv1.0.0 · updated 2026-09-25

Type to Confirm

Free · MIT

Asks the user to type a word before a destructive action. Each correct letter stamps into the hot colour, so progress is visible before the button unlocks.

dialogdestructiveform
Free
Customize
Accent

Install

$ npm install motion
  1. Copy ConfirmWord.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 2

PropTypeDefaultDescription
openboolean—Controlled open state.
onClose() => void—Called on cancel or confirm.

Features

  • Letter-by-letter feedback
  • Button unlocks on match
  • alertdialog role

Dependencies

  • motion@^14.0.0
  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Letters change colour without lifting.

Related