Skip to main content
← Back to Table of Contents

Summary

OTP / verification code input with grouped digit boxes, paste support, optional auto-submit, loading indicator, and optional account-verify chrome (heading, description, footer link action).

Basic usage

Standard 6-digit OTP

Alphanumeric with auto-submit


State & validation

Stored value

State is a normalized string of exactly length() characters. Separators are display-only.

Validation rules


Configuration API

All methods accept Closure unless noted.

submitUsing()

Run a PHP callback when the code is complete. Inject $state, $livewire, $set, etc.

footerAction()

Register a link-style action (e.g. Resend):

Real-world examples

Account verification screen

2FA backup codes


Playground

/admin/flex-fields-playground/verification-code See Playground for setup.

CSS classes (reference)


Performance