Components / Navigation & overlaysv1.0.0 · updated 2026-09-25
Type to Confirm
Free · MITAsks 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
Customize
Accent
Install
$ npm install motion- Copy
ConfirmWord.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 2
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | 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.0react@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Letters change colour without lifting.