Icon
The icon
prop allows you to add an icon to the menu item. The icon prop accepts a React element, which can be any valid JSX or component that represents the desired icon. This gives you the flexibility to use popular icon libraries, custom SVG icons, or any other icon implementation you prefer.
Propsโ
icon?: ReactElement
Exampleโ
/vertical-menu/menu-item/icon
Source Codeโ