Skip to main content

Radio Button API Overview

Initialization

<script>
import { RadioButton } from "wx-svelte-core";
</script>

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

Radio Button Properties

checkeddefines whether a radio button is checked
disableddefines whether a radio button is disabled
idsets an HTML id for a radio button
labelspecifies the label of a radio button
namesets the name of a group a radio button belongs to
valuespecifies the value associated with a radio button