sigilUI

Number Field

Edit a numeric value with increment and decrement controls.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { NumberField } from "@sigil-ui/components";

Usage

<NumberField defaultValue={42} />

Props

PropTypeDefaultDescription
valuenumber—The current controlled value.
defaultValuenumber—Initial value when the component manages its own state.
onValueChange(value: number) => void—Called when the user changes the value.
minnumber—Smallest allowed value.
maxnumber—Largest allowed value.
stepnumber—Amount added or removed by each adjustment.
disabledboolean—Prevents user interaction when enabled.

Token integration

CSS VariablePurpose
--s-text-mutedText muted
--s-duration-fastDuration fast
--s-surface-elevatedSurface elevated
--s-textText
--s-input-heightInput height
--s-radius-inputRadius input
--s-border-styleBorder style
--s-borderBorder
--s-backgroundBackground
--s-primaryPrimary