Package org.patternfly.component.numberinput


package org.patternfly.component.numberinput
Provides the PatternFly number input component.

A number input provides a numeric input field with increment and decrement buttons. It supports minimum and maximum values, custom step sizes, unit labels, validation status, and configurable input widths.

Usage

import static org.patternfly.component.numberinput.NumberInput.numberInput;

NumberInput input = numberInput(90)
        .unit("%");
A number input with minimum and maximum thresholds:
import static org.patternfly.component.numberinput.NumberInput.numberInput;

NumberInput input = numberInput(0)
        .min(0)
        .max(10)
        .unit("%");
See Also:
  • Class
    Description
    A number input combines a text input field with buttons to provide users with a quick and effective way to enter and modify a numeric value.