Open WarpedPixel opened 1 month ago
@WarpedPixel Are you suggesting to hide -/+ buttons or have number restriction removed? Or both?
Hide the buttons and the additional chrome (a divider it looks like), but still restricted to numbers and popping the best soft keyboard for numbers on each platform. Handling (or rejecting) decimals or integers only or negative numbers would be nice but not critical. The sample code almost works.
Imo type ControlVariant = 'default' | 'stacked' | 'split'
is also missing 'none' variant
Problem to solve
A number input that actually restricts inputs to numbers on all browsers and platforms
Proposed solution
A
v-input-control
with the following inside it is pretty close to the desired feature (except for the vertical separator line controlled byinset
which still shows):