Skip to content

Bug - MenuGroup - does not support Node elements in label #8209

@karelhala

Description

@karelhala

Describe the problem
When using Menu component ant its MenuGroup we aren't able to pass React.Node elements to it.

How do you reproduce the problem?

<MenuGroup label={<div>FooBar</div>}>
  <MenuList>
    <MenuItem to="#" itemId={1}> Link 1 </MenuItem>
  </MenuList>
</MenuGroup>

Expected behavior
UI renders group with labeled element. Preferably not within h1 tag. This is mostly for styling the group on your own.

Is this issue blocking you?
No.

What is your product and what release date are you targeting?
HCC

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions