Zum Inhalt springen

UI: OtpField

Als Markdown ansehen

Ein Feld für den sechsstelligen Code einer Authenticator-App. Importiere die Token-Datei einmal (@pithyx/ui/tokens.css) und umschließe die App mit UiProvider; siehe @pithyx/ui.

Beim Build aus den TSDoc-Kommentaren von @pithyx/ui 1.0.0-rc.9 erzeugt; der Text unter den Überschriften ist der Kommentar im Quelltext und bleibt Englisch.

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 Typ Beschreibung
props Omit<TextFieldProps, "type" | "inputMode" | "autoComplete"> The props of TextField without type, inputMode and autoComplete.

Element

The code field.