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:

NameDefaultType
increment-by1number
Amount to increment the value by when clicking the increment button
increment-enabledtrueboolean
Whether the increment button is enabled
hide-incrementfalseboolean
Whether to hide the increment button
decrement-by1number
Amount to decrement the value by when clicking the decrement button
decrement-enabledtrueboolean
Whether the decrement button is enabled
hide-decrementfalseboolean
Whether to hide the decrement button