Create dynamic group & category filters in R Shiny — like multilevel dashboards

I want to recreate the filter structure seen in the attached screenshots, picture 2:

  • The left panel shows all group variables
  • When selecting a group (e.g. “Civil status”), its categories appear to the right (e.g. Married, Single, Divorced…)
  • Users can click “Select all” / “Deselect all” for the category set
  • It’s clean and intuitive, even when more than one group is selected

Picture 2:


Picture 1:

1 Like

Hi @BelAu

You could make something like this with a checkbox component in an Accordion component in either dash-bootstrap-components or dash-mantine-components.

Or as a single component you could try the Tree component with checkboxes

1 Like