Navigation Menu
A flexible navigation component that organizes site or app sections for easy browsing and accessibility.
Loading...
Installation
Usage
API
Navigation Menu Props
For NavigateMenu Container
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Navigation items rendered inside the floating navigation menu. Typically composed of NavigateItem components. | - |
| className | string | Additional CSS classes to customize the navigation menu container styling. | - |
For NavigateItem Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| src | string | Source URL of the icon image displayed inside the navigation item. | - |
| alt | string | Alternative text for the navigation icon image. | "" |
| size | number | Base size (in pixels) of the navigation item icon. Used for hover scaling behavior. | 40 |
| href | string | Optional URL to open in a new tab when the navigation item is clicked. | - |
| onClick | () => void | Optional click handler for the navigation item. Takes precedence over href if provided. | - |
| tooltipContent | string | Optional tooltip text displayed when hovering over the navigation item. | - |
| className | string | Additional CSS classes to customize the navigation item styling. | - |
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.