Skip to main content

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

disabledOptional. Defines whether a counter is disabled
errorOptional. Defines whether error styling is applied to the Counter control
idOptional. Sets an HTML id for a counter
maxOptional. Sets the maximal value of the counter
minOptional. Sets the minimal value of the counter
readonlyOptional. Defines whether a counter is read-only
stepOptional. Sets the jump between values of the counter
valueOptional. Sets the value of a counter

Counter Events

changeFires when a number is changed in the counter