UI: OtpField
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.
Functions
Section titled “Functions”OtpField()
Section titled “OtpField()”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).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props |
Omit<TextFieldProps, "type" | "inputMode" | "autoComplete"> |
The props of TextField without type, inputMode and autoComplete. |
Returns
Section titled “Returns”Element
The code field.