React Hookers - v6.3.0
    Preparing search index...

    Interface HeadlessNumberInputProps

    Props of the useNumberInput hook.

    interface HeadlessNumberInputProps {
        format?: NumberFormat;
        id?: string;
        isAutofocused?: boolean;
        isCopyDecoded?: boolean;
        isDisabled?: boolean;
        isInvalid?: boolean;
        isMinusSignIgnored?: boolean;
        isUndefinedValueFormatted?: boolean;
        onBlur?: () => void;
        onChange?: (value: undefined | number) => void;
        onFocus?: () => void;
        onFocusChange?: (isFocused: boolean) => void;
        onFocusVisible?: () => void;
        onHoverChange?: (isHovered: boolean) => void;
        onHoverEnd?: () => void;
        onHoverStart?: () => void;
        value: undefined | number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    format?: NumberFormat

    A number format. By default, a format that uses the current locale.

    id?: string

    An ID that uniquely identifies a text input.

    isAutofocused?: boolean

    If true then element is auto-focusable inside a focus scope.

    false
    
    isCopyDecoded?: boolean

    If true then formatting is removed when a number is copied or cut.

    false
    
    isDisabled?: boolean

    If true then hover events are disabled.

    false
    
    isInvalid?: boolean

    If true then an input is marked as invalid.

    false
    
    isMinusSignIgnored?: boolean

    If true then the handler won't allow changing the sign of the edited number.

    false
    
    isUndefinedValueFormatted?: boolean

    If true then formatting is rendered for an undefined value.

    false
    
    onBlur?: () => void

    A handler that is called when the element loses focus.

    onChange?: (value: undefined | number) => void

    A handler that is called when an input value is changed.

    Type declaration

      • (value: undefined | number): void
      • Parameters

        • value: undefined | number

          An input value.

        Returns void

    onFocus?: () => void

    A handler that is called when the element receives focus.

    onFocusChange?: (isFocused: boolean) => void

    A handler that is called when the element's focus status changes.

    Type declaration

      • (isFocused: boolean): void
      • Parameters

        • isFocused: boolean

          true if an element is focused.

        Returns void

    onFocusVisible?: () => void

    A handler that is called when the element receives focus that must be visible to a user.

    onHoverChange?: (isHovered: boolean) => void

    A handler that is called when the hover state changes.

    Type declaration

      • (isHovered: boolean): void
      • Parameters

        • isHovered: boolean

          true if an element is hovered.

        Returns void

    onHoverEnd?: () => void

    A handler that is called when a hover interaction ends.

    onHoverStart?: () => void

    A handler that is called when a hover interaction starts.

    value: undefined | number

    The current input value.