Filter group
An Accordion holding a fieldset of checkboxes. The controls are plain form
fields, so a set of filter groups inside a GET form filters without any
script. When any option has a color, the group renders colour dots beside
each checkbox.
Category
Options
Section titled “Options”title: shown in the accordion summary and as the fieldset legend (required)name: form field name shared by every option (required); ids are built from it, so keep it unique on a pageoptions: list of{ label, value, count, color, checked }(required).countis shown in bracketsopen: starts expanded (defaulttrue)
<FilterGroup title="Category" name="category" options={[ { label: "Clothing", value: "clothing", count: 24, checked: true }, { label: "Home", value: "home", count: 18 }, ]}/>