CheckboxGroup

Multiple checkbox selection component.

Usage

<CheckboxGroup
label="Interests"
name="interests"
options={[
{ value: "tech", label: "Technology" },
{ value: "design", label: "Design" },
{ value: "music", label: "Music" },
]}
/>

Props

PropTypeDescription
labelstringGroup label text
namestringInput name attribute
optionsarrayArray of { value, label } objects
valuearrayArray of selected values