UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

51 lines (32 loc) 818 B
--- id: Number input section: components cssPrefix: pf-v5-c-number-input propComponents: ['NumberInput'] --- ## Examples ### Default ```ts file="./NumberInputDefault.tsx" ``` ### With unit ```ts file="./NumberInputUnit.tsx" ``` ### With unit and thresholds To enable a user entered value to snap to the nearest threshold if the entered input is out of bounds, define the blur event handler. ```ts file="./NumberInputUnitThreshold.tsx" ``` ### Disabled ```ts file="./NumberInputDisabled.tsx" ``` ### With status ```ts file="./NumberInputWithStatus.tsx" ``` ### Varying sizes ```ts file="./NumberInputVaryingSizes.tsx" ``` ### Custom increment/decrement ```ts file="./NumberInputCustomStep.tsx" ``` ### Custom increment/decrement and thresholds ```ts file="./NumberInputCustomStepAndThreshold.tsx" ```