Feedback

Verification Loader

A small presentational spinner + label for the in-flight verification moment.

feedbackloading

Best used for Composing a fully custom verification UI that still needs the standard in-flight spinner/label.

A tiny, focused component — reach for it when composing your own verification UI from scratch.

Loading preview…
Installation

Add this block to your project

CLI

npx shadcn@latest add http://localhost:3000/r/react/verification-loader.json

Running this site somewhere other than localhost? Set NEXT_PUBLIC_SITE_URL and this command switches to that host automatically.

Also installs

  • cx (classname helper)

Files created (2)

  • components/knock-codes/react/cx.ts
  • components/knock-codes/react/VerificationLoader.tsx

No CLI? Copy the files by hand

  1. Open the Code tab in the preview above.
  2. Create each path listed below in your project and paste its contents in.
  3. Do the same for anything listed under “Also installs”, if present.

Props

API reference

PropTypeDefaultDescription
labelstring"Checking..."Text next to the spinner.
classNamestringExtra classes on the container.
Notes

Accessibility

role="status" + aria-live="polite", with the spinner itself marked aria-hidden so screen readers announce the text label once, not a decorative glyph.

Customization

The same visual `<PinInput>` shows inline via its `submitting` state, exposed standalone for a fully custom access-code form built directly on `useKnockCodes` where you're not using `<PinInput>` at all.

Compose with

Blocks that pair well with this one

These combine naturally with this block, whether as a shared shell, a shared session, or a common fallback.