Otp API
Headless one-time-password / verification-code input with auto-advance, backspace-back navigation, and paste distribution across boxes.
Related
Explore these related pages for additional context and usage patterns.
Otp.Root
Props
Events
update:model-value
[value: string]complete
[value: string]Slots
default
OtpRootSlotPropsOtp.HiddenInput
Props
namespace
string | undefinedNamespace for context injection from parent Otp.Root
Default: "v0:otp:root"
Otp.Item
Props
namespace
string | undefinedNamespace for context injection from parent Otp.Root
Default: "v0:otp:root"
Slots
default
OtpItemSlotProps