Number Field
A numeric input element with increment and decrement buttons, and a scrub area.
Usage guidelines
- Form controls must have an accessible name: Give it one with a
<label>element or the Field parts.
Anatomy
Import the primitives and assemble the parts:
@using Blazix.Primitives
<NumberFieldRoot>
<NumberFieldScrubArea>
<NumberFieldScrubAreaCursor />
</NumberFieldScrubArea>
<NumberFieldGroup>
<NumberFieldDecrement />
<NumberFieldInput />
<NumberFieldIncrement />
</NumberFieldGroup>
</NumberFieldRoot>API Reference
NumberFieldRoot
Renders a <div> element.
Other attributes are passed to the element it renders.
NumberFieldInput
Renders a <input> element.
Other attributes are passed to the element it renders.
NumberFieldGroup
Renders a <div> element.
Other attributes are passed to the element it renders.
NumberFieldScrubArea
Renders a <span> element.
Other attributes are passed to the element it renders.
NumberFieldScrubAreaCursor
Renders a <span> element.
Other attributes are passed to the element it renders.
NumberFieldDecrement
Renders a <button> element.
Other attributes are passed to the element it renders.
NumberFieldIncrement
Renders a <button> element.
Other attributes are passed to the element it renders.