structyl

Number Field

stable

A numeric input with stepper buttons and Intl formatting.

Basic usage

Examples

Quantity selector

A controlled number field used as a cart quantity input.

Quantities and currency

NumberField supports min, max, step and Intl formatting options.

Features

  • Min / max / step.
  • Keyboard + wheel support.

Installation

bash
pnpm dlx structyl add number-field

API Reference

Number Field API reference

Full props, types, defaults, and all 4 parts.

View API
Number Field | structyl