@dxos/react-ui
    Preparing search index...

    Type Alias PinProps

    PinProps: ThemedClassName<
        Pick<
            PinInputPrimitive.RootProps,
            | "mask"
            | "otp"
            | "type"
            | "pattern"
            | "placeholder"
            | "blurOnComplete"
            | "selectOnFocus"
            | "autoFocus"
            | "disabled"
            | "readOnly"
            | "required"
            | "invalid"
            | "name"
            | "form",
        >,
    > & {
        "aria-label"?: string;
        "data-testid"?: string;
        defaultValue?: string;
        length?: number;
        onValueChange?: (value: string) => void;
        onValueComplete?: (value: string) => void;
        size?: Size;
        value?: string;
    }

    Type declaration

    • Optionalaria-label?: string

      Names the cells' group when there is no enclosing Field.Label.

    • Optionaldata-testid?: string
    • OptionaldefaultValue?: string
    • Optionallength?: number

      Number of cells (6 by default, as the current PinInput).

    • OptionalonValueChange?: (value: string) => void
    • OptionalonValueComplete?: (value: string) => void

      Called once every cell is filled.

    • Optionalsize?: Size

      The cells' size, as any control's (a code entered on its own reads larger than a form's fields).

    • Optionalvalue?: string

      The code as one string; unfilled cells are absent from its end.