Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function OTPFieldWidget

    • Shows a one-time code field, six slots unless length says otherwise, whose value can persist. The root's own props, such as length and validationType, pass through.

      Parameters

      • props: OTPFieldWidgetProps

        One-time code field props. length: Number of slots; 6 by default, the most common code length. aria-label: Accessible name of the group; Verification code by default. initialValue: Code shown until one is stored; empty by default. data-attr: Attribute the code persists under; without it, the code stays local. onValueChange: Called after each change is stored.

      Returns Element