Skip to content

TkxOTP

import { TkxOTP } from 'tekivex-ui';
Basic — 6-digit code (default)

Current value: (empty)

Custom lengths — 4 and 8 digits

4-digit PIN:

8-digit security code:

With onComplete — fires when all digits filled
  • Keyboard navigation supported on all interactive elements
  • :focus-visible outline at 2px (theme-token primary)
  • ARIA roles and properties applied per WAI-ARIA 1.2
  • Respects prefers-reduced-motion
  • Minimum 44×44 touch target where applicable

Implementation in src/components/TkxOTP.tsx.

For the full interactive sandbox, open the playground.