Skip to main content

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

optionsspecifies an array of radio buttons to be grouped
typesets the type of radio buttons' grouping
valuedefines the initially checked radio button