Skip to main content

On Click

The onClick prop allows you to define a custom function that will be called when the submenu is clicked. It provides a way to handle the click event and perform specific actions or logic in response to the click.

Props

onClick?: (event: React.MouseEvent<HTMLElement>) => void

Example

/vertical-menu/submenu/on-click

Click on Dashboards and check console

Source Code