Closed artemavrin closed 2 months ago
Preview is ready.
You can show description in current realization without adding additional prop. title
prop in menuItems has ReactNode type. I'd rather this way.
https://github.com/gravity-ui/navigation/blob/main/src/components/types.ts#L18
For example:
{
id: 'menu-item-1',
title: <div>Title <div>description</div></div>,
icon: Gear,
itemWrapper(params, makeItem, {compact}) {
return (
<div className="container">
{makeItem(params)}
</div>
);
},
}
Hm, you're right, thx!
menu item needs some description sometimes