Radio Button Group API Overview
Initialization
import { RadioButtonGroup } from "@svar-ui/react-core";
const options = [
{ id: 1, label: "Option 1" },
{ id: 2, label: "Option 2" },
// more options
];
function App() {
return <RadioButtonGroup options={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 | Optional. Specifies an array of radio buttons to be grouped |
type | Optional. Sets the type of radio buttons grouping |
value | Optional. Defines the initially checked radio button |
Radio Button Group Events
change | Fires when radio buttons are checked |