Skip to content

NumberFieldInput

Source: client/lib/theme/vueda-tailwind/controls/index.js

The numeric <input> itself. Same hairline + focus shell as Input.root, but renders in mono + tabular numerals and centres the value so digit widths stay stable while a stepper cycles through different-length numbers. Mono is the segment-as-token treatment shared with the date / time fields.

Vue component: NumberFieldInput

SlotDefault classesDescription
root2 classesThe numeric <input> itself. Same hairline + focus shell as Input.root, but renders in mono + tabular numerals and centres the value so digit widths stay stable while a stepper cycles through different-length numbers. Mono is the segment-as-token treatment shared with the date / time fields.

root

The numeric <input> itself. Same hairline + focus shell as Input.root, but renders in mono + tabular numerals and centres the value so digit widths stay stable while a stepper cycles through different-length numbers. Mono is the segment-as-token treatment shared with the date / time fields.

Default classes:

text
flex h-vueda-control w-full rounded-vueda-field hairline bg-transparent font-mono tabular-nums text-sm text-center shadow-vueda-control transition-shadow
placeholder:text-muted-foreground focus-visible:hairline-ring focus-visible:focus-ring-shadow disabled:cursor-not-allowed disabled:opacity-50

Source: client/lib/theme/vueda-tailwind/controls/NumberFieldInput.theme.js:17

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2