Skip to main content

Counter API Overview

Initialization

<script>
import { Counter } from "@svar-ui/svelte-core";
</script>

<!-- minimal configuration for initialization -->
<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 id for inner HTML input
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