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

checkeddefines whether a checkbox is checked
disableddefines whether a checkbox is disabled
idsets an HTML id for a checkbox
labelspecifies the label of a checkbox
namespecifies the name associated with a checkbox
styleadds a CSS inline style for a checkbox
valuespecifies the state of a checkbox

Checkbox Events

changefires when the state of a checkbox is changed