Skip to main content

Checkbox API Overview

Initialization

<script>
import { Checkbox } from "wx-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

disableddefines whether a checkbox is disabled
idsets an HTML id for a checkbox
inputValuespecifies the value of checked control
labelspecifies the label of a checkbox
styleadds a CSS inline style for a checkbox
valuedefines whether a checkbox is checked

Checkbox Events

changefires when the state of a checkbox is changed