ResourceMenuItemGroup

Groups related resource menu items under a heading.

Installation

pnpm dlx shadcn@latest add @chelone/resource-menu-item-group
Loading preview…

Groups related resource menu items under a heading.

Props

PropTypeDefaultDescription
childrenReactNode—Extra entries after the resources, inside the group, so a collapse hides them too.
classNamestring—Extra CSS class appended to the wrapping sidebar group.
defaultOpenboolean—Initial open state for labeled (collapsible) groups.
labelstring—Optional section label. Omit for the ungrouped resource section.
menuClassNamestring—Extra CSS class appended to the underlying sidebar menu.
resourcesstring[]—Resource names to render. When omitted, every registered resource with `hasList === true` is rendered.