Skip to main content

Checkbox API Overview

Initialization

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

<!-- minimal configuration for initialization -->
<Checkbox />
tip
  • Visit the Features Guide to learn more about the control's functionality.
  • Explore the samples to visualize the available features.

Checkbox Properties

disabledOptional. Defines whether a checkbox is disabled
idOptional. Sets an HTML id for a checkbox
inputValueOptional. Specifies the value of checked control
labelOptional. Specifies the label of a checkbox
styleOptional. Adds a CSS inline style for a checkbox
valueOptional. Defines whether a checkbox is checked

Checkbox Events

changeFires when the state of a checkbox is changed