Code Slots
One-time code input where each digit lands into its slot on a spring, a rejected code drains away slot by slot, and an accepted one merges into a single wash with a check.
Default
Type or paste a six digit code. Switch the outcome in the panel to see it accepted or rejected.
API Reference
CodeSlots
Accessibility
Keyboard shortcuts and ARIA behavior.
- A single visually hidden input owns the focus, accepts paste and one-time-code autofill, and is announced with its label. A live region reports how many digits are entered, or that the code was accepted.
- With prefers-reduced-motion digits appear without rising and the cascade is skipped.