9.2k

Number Field

A numeric input element with increment and decrement buttons, and a scrub area.

API Reference

Installation

Usage

API Reference

NumberField

Root component. Styled wrapper for NumberField.Root from Base UI.

NumberFieldGroup

Container for the input and buttons. Styled wrapper for NumberField.Group from Base UI.

NumberFieldInput

Input element for the number value. Styled wrapper for NumberField.Input from Base UI.

NumberFieldIncrement

Button to increment the value. Styled wrapper for NumberField.Increment from Base UI with plus icon.

NumberFieldDecrement

Button to decrement the value. Styled wrapper for NumberField.Decrement from Base UI with minus icon.

NumberFieldScrubArea

Draggable area for scrubbing the value. Styled wrapper for NumberField.ScrubArea from Base UI.

Examples

For accessible labelling and validation, prefer using the Field component to wrap number fields. See the related example: Number field.

Small Size

Large Size

Disabled

With External Label

With Scrub

With Range

With Formatted Value

With Step

Form Integration

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).