SideNavigationItem: Contain other components like Badge
Open
@olannyv is already working on this.
Since Sep 1, 2021.
feature request
TOPIC RD
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 285
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 59
Description
Is your feature request related to a problem? Please describe.
I'm on a task that a Badge component need to be added after the SideNavigationSubItem but I found that SideNavigationSubItem only accepts designed props. Other components don't work inside SideNavigationItem .
This is the SideNavigationItem component I'm working on.
<SideNavigationItem id={item.id} key={item.id} text={item.text} icon={item.icon} >
{item.sub.map((data) => (
<SideNavigationSubItem
className={classes.sideBarNavItem}
id={data.id}
key={data.id}
text={data.text}
selected={data.id === navItemSelected} />
))}
</SideNavigationItem>)
Describe the solution you'd like
I drew a prototype. The Badge named 'Beta' is attached after SideNavigationSubItem

Additional context
I'm wondering weather the feature above is feasible. Looking forward to your reply, thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.