Counter API Overview
Initialization
import { Counter } from "@svar-ui/react-core";
export default function App() {
// minimal configuration for initialization
return <Counter />;
}
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Counter Properties
disabled | Optional. Defines whether a counter is disabled |
error | Optional. Defines whether error styling is applied to the Counter control |
id | Optional. Sets an HTML id for a counter |
max | Optional. Sets the maximal value of the counter |
min | Optional. Sets the minimal value of the counter |
readonly | Optional. Defines whether a counter is read-only |
step | Optional. Sets the jump between values of the counter |
value | Optional. Sets the value of a counter |
Counter Events
change | Fires when a number is changed in the counter |