Skip to main content

Radio Button API Overview

Initialization

import { RadioButton } from "@svar-ui/react-core";

export default function Example() {
// minimal configuration for initialization
return <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