Preview controls could not be applied. The static default fixture remains available.
§01
Contract
Semantics first
Anatomy
Uses input type=number plus two labelled native buttons; name/value submission and min/max/step remain native.
Consumer classes, styles, and data attributes may extend the surface, but required roles, IDs, relationships, and handlers remain owned by the component.
Keyboard
Tab reaches decrement, input, and increment controls.
The input retains native Arrow Up/Down and editing behavior.
Enter/Space activate step buttons, which clamp to min/max and return focus to the input.
§02
Public surface
API & styling
Props
id
Explicit IDs override stable generated IDs.
class / style
Consumer additions compose with required styles.
ref
Element or callback where focus control is expected.
children
Typed content; raw HTML strings are never rendered.
Slots & events
children
Primary content slot.
onChange
Typed value plus a small reason object when state changes.
There is no stable predecessor for this explicit compiled subpath. The v1 compatibility layer remains tested separately; visual and API diffs begin with the next prerelease.