Interface AriaSpinButton<T>

interface AriaSpinButton<T> {
    decrementButtonProps: ButtonHTMLAttributes<HTMLButtonElement>;
    incrementButtonProps: ButtonHTMLAttributes<HTMLButtonElement>;
    inputProps: InputHTMLAttributes<HTMLInputElement>;
    state: {
        value: T;
    };
}

Type Parameters

  • T = any

Properties

decrementButtonProps: ButtonHTMLAttributes<HTMLButtonElement>

Props to spread on the decrement button element.

incrementButtonProps: ButtonHTMLAttributes<HTMLButtonElement>

Props to spread on the increment button element.

inputProps: InputHTMLAttributes<HTMLInputElement>

Props to spread on the input element.

state: {
    value: T;
}

The current state of the SpinButton component.

Type declaration

  • value: T

Generated using TypeDoc