Skip to main content

Radio Button API Overview

Initialization

<script>
import { RadioButton } from "@svar-ui/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

disabledOptional. Defines whether a radio button is disabled
idOptional. Sets an HTML id for a radio button
inputValueOptional. Specifies the value associated with a radio button
labelOptional. Specifies the label of a radio button
nameSpecifies. Sets the name of a group a radio button belongs to
valueOptional. Defines whether a radio button is checked

Radio Button Events

changeFires when the state of a radio button is checked