Skip to main content
NeuralUIv1.14.3New
GitHub
Component

Input OTP

One-time code input with auto-advance, paste support and keyboard-friendly focus management

TypeScript
import { NeuInputOTPComponent } from '@neural-ui/core/input-otp';

Partial: –

TypeScript
import { NeuInputOTPComponent } from '@neural-ui/core/input-otp';

@Component({
  imports: [NeuInputOTPComponent],
  template: `
    <neu-input-otp
      [length]="6"
      (completed)="onOtpComplete($event)"
    />
  `
})
export class VerifyComponent {
  onOtpComplete(code: string) {
    console.log('OTP completo:', code); // e.g. "123456"
    this.verify(code);
  }
}