Checkbox Group API Overview
Initialization
import { CheckboxGroup } from "@svar-ui/react-core";
const options = [
{ id: 1, label: "Option 1" },
{ id: 2, label: "Option 2" },
// more options
];
export default function App() {
return <CheckboxGroup options={options} />;
}
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Checkbox Group Properties
options | Optional. Specifies an array of checkboxes to be grouped |
type | Optional. Sets the type of checkboxes' grouping |
value | Optional. Defines the initially checked checkboxes |
Checkbox Group Events
change | Fires when the checkboxes are selected |