RayCraftDocs
v1.0.3 raycraft.dev
On this page

OtpInput

Free

One box per character for verification codes. Typing moves to the next box, Backspace to the previous one, and a pasted code fills all boxes.

Example

OtpInput control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
LengthintNumber of boxes.
MaskboolHides the typed characters.
NumericboolAccepts digits only (default true).
StylestringInline style added to the root element.
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
CompletedEventCallback<string>Raised with the full code when every box is filled.
ValueChangedEventCallback<string>Raised when the value changes.

Package

OtpInput is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.