Skip to content
Menu

Forms

Verification Code Card

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.

Using Verification Code Card

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

Customize the preview

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

ControlTypeDefaultPreview limits
lengthnumber6From 4 to 8; step 1
accentColorcolor#FF6A1FNo additional limit in the metadata.
resendSecondsnumber30From 0 to 90; step 5
autoSubmitbooleanfalseNo additional limit in the metadata.
titletextEnter verification codeUp to 48 characters
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.

Connect your agent

Related open components