Radio Button Group API Overview
Initialization
<script>
import { RadioButtonGroup } from "@wx/svelte-core";
</script>
<script>
let options = [
{ value: 1, label: "Option 1" },
{ value: 2, label: "Option 2" },
// more options
];
</script>
<RadioButtonGroup {options} />
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Radio Button Group Properties
options | specifies an array of radio buttons to be grouped |
type | sets the type of radio buttons' grouping |
value | defines the initially checked radio button |