Hierarchy tree picker
Collapsible multi-level group and child checkbox tree with search and batch group selection.
Interactive example
Loading Polaris web components…
Usage
<HierarchyTreePicker groups={groups} selectedIds={selected} onChange={setSelected} />Properties
| Property | Type | Default | Description |
|---|---|---|---|
| groups | HierarchyTreeGroup[] | Required | Parent groups containing selectable child records. |
| selectedIds | string[] | Required | Controlled list of selected child IDs. |
| onChange | (ids)=>void | Required | Updated child ID selection callback. |
| searchPlaceholder | string | Filter groups or items | Accessible filter prompt. |
Design & interaction
Group Shopify companies or product families above leaf locations and variants so bulk assignment takes one click instead of flat ungrouped lists.
Accessibility
Native s-checkbox controls with indeterminate parent states, labeled expand/collapse buttons, and native search field.
Open-source source
Available in github.com/Kaupvik/kaupvik-polaris ↗. Host apps supply authentication, native persistence, and read-back state.