Skip to content

UI: OtpField

View as Markdown

An input for the six-digit code of an authenticator app. Import the token file once (@pithyx/ui/tokens.css) and wrap the app in UiProvider; see @pithyx/ui.

Generated from the TSDoc comments of @pithyx/ui 1.0.0-rc.9 at build time; the text below the headings is the comment in the source.

function OtpField(props): Element;

An input for the six-digit code from an authenticator app: numeric keyboard, one-time-code autofill and at most seven characters (a space in the middle is allowed).

Parameter Type Description
props Omit<TextFieldProps, "type" | "inputMode" | "autoComplete"> The props of TextField without type, inputMode and autoComplete.

Element

The code field.