Counter
A specialized input component for numeric values that includes increment and decrement buttons. It extends the base Input component with counter-specific functionality.
Choose a number between 0 and 10
Props
The Counter component accepts all props from the base Input component, with the following additions:
| Name | Default | Type |
|---|---|---|
increment-by | 1 | number Amount to increment the value by when clicking the increment button |
increment-enabled | true | boolean Whether the increment button is enabled |
hide-increment | false | boolean Whether to hide the increment button |
decrement-by | 1 | number Amount to decrement the value by when clicking the decrement button |
decrement-enabled | true | boolean Whether the decrement button is enabled |
hide-decrement | false | boolean Whether to hide the decrement button |