ResourceMenuItemGroup
Groups related resource menu items under a heading.
Installation
pnpm dlx shadcn@latest add @chelone/resource-menu-item-groupLoading preview…
Groups related resource menu items under a heading.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Extra entries after the resources, inside the group, so a collapse hides them too. |
| className | string | — | Extra CSS class appended to the wrapping sidebar group. |
| defaultOpen | boolean | — | Initial open state for labeled (collapsible) groups. |
| label | string | — | Optional section label. Omit for the ungrouped resource section. |
| menuClassName | string | — | Extra CSS class appended to the underlying sidebar menu. |
| resources | string[] | — | Resource names to render. When omitted, every registered resource with `hasList === true` is rendered. |