Gloss UIv4.4
Architecture
Style Guide
Primitives
Input
TextNumberTextareaSelectCheckboxRadioToggle
Output7
Actions4
Forms2
Dashboard10
Composites
Compositions
Planning
Applications

Prototypes

Gloss UIv4.4
Architecture
Style Guide
Primitives
Input
TextNumberTextareaSelectCheckboxRadioToggle
Output7
Actions4
Forms2
Dashboard10
Composites
Compositions
Planning
Applications

Prototypes

Number Input

Numeric input with optional stepper buttons for increment/decrement operations. Supports min/max bounds, custom step values, and formatted display.

Number Input StatesInteractive
Default
Success
Error
Disabled

Basic Usage

Quantity Selector
Current value: 1

Stepper Positions

The stepper buttons can be positioned on the right (default) or on both sides of the input.

Right (Default)
Sides

Formatted Values

Use formatValue and parseValue to display formatted numbers like currency or percentages.

Currency
Percentage

Validation States

Sufficient inventory
Value must be positive

Without Stepper Buttons

Keyboard Support

Arrow Up
Increment value by step amount
Arrow Down
Decrement value by step amount

Props Reference

PropTypeDefaultDescription
valuenumber-Controlled value
defaultValuenumber0Uncontrolled default value
onChange(value: number) => void-Change callback
minnumber-Minimum allowed value
maxnumber-Maximum allowed value
stepnumber1Increment/decrement step
showStepperbooleantrueShow stepper buttons
formatValue(value: number) => string-Format display value
labelstring-Label text
helperTextstring-Helper/error text
variant'default' | 'success' | 'error''default'Visual variant styling
disabledbooleanfalseDisabled state
placeholderstring-Placeholder text