Skip to main content

Icon

The icon prop allows you to add an icon to the submenu. 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

/horizontal-menu/submenu/icon

Source Code