Skip to main content

Radio Button Group API Overview

Initialization

<script>
import { RadioButtonGroup } from "@svar-ui/svelte-core";
</script>

<script>
let options = [
{ id: 1, label: "Option 1" },
{ id: 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

optionsOptional. Specifies an array of radio buttons to be grouped
typeOptional. Sets the type of radio buttons grouping
valueOptional. Defines the initially checked radio button

Radio Button Group Events

changeFires when radio buttons are checked