# Verification Code Card

https://fieldbook.lizardi.mx/components/verification-code-card

Category: Forms
![Still of the Verification Code Card component, a Fieldbook UI component in Forms.](https://fieldbook.lizardi.mx/thumbs/verification-code-card.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/verification-code-card-24fa2798f1.mp4 (5 s, silent)

Verification Code Card: A boxed verification step with a labelled code field, a Verify button that unlocks only when the code is complete, and a resend link on a countdown.

## 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 |
| --- | --- | --- | --- |
| length | number | 6 | From 4 to 8; step 1 |
| accentColor | color | #FF6A1F | No additional limit in the metadata. |
| resendSeconds | number | 30 | From 0 to 90; step 5 |
| autoSubmit | boolean | false | No additional limit in the metadata. |
| title | text | Enter verification code | Up to 48 characters |

## Usage notes

Verification Code Card uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Verification Code Card?

Verification Code Card 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 Verification Code Card depend on?

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

### What accessibility details are visible in Verification Code Card?

The React source for Verification Code Card includes: native elements (button, input, label); attributes and handlers (aria-hidden, aria-invalid, aria-label, aria-labelledby, aria-live, onKeyDown); explicit roles (group, status); key comparisons (ArrowLeft, ArrowRight, End, Home). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Verification Code Card handle reduced motion?

Verification Code Card reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? undefined : "animate-spin"; reduced ? \{ duration: 0 \} : \{ duration: 0.32, ease: \[0.25, 0.9, 0.3, 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": "verification-code-card",
    "framework": "react"
  }
}
```

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

## Related open components

- [Tall Code Keypad](https://fieldbook.lizardi.mx/components/tall-code-keypad)
- [Focus Guard Form](https://fieldbook.lizardi.mx/components/focus-guard-form)
- [Notification preferences](https://fieldbook.lizardi.mx/components/notification-preferences)
- [Release notification form](https://fieldbook.lizardi.mx/components/release-notification-form)
- [Scribble strike checklist](https://fieldbook.lizardi.mx/components/scribble-strike-checklist)
- [Scrub Number Input](https://fieldbook.lizardi.mx/components/scrub-number-input)
