Skip to main content

Icons

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

Source Code