priority navigation component for react
npm install react-priority-navigation``js
import PriorityNav, { ToggleButton } from 'react-priority-navigation';
<>
{dropdownItems.map((item, i) => (
))}
>
)}
>
This is Link 🔗
Props
| Name | Type | Description | Default |
| ------------- | ------- | ------------------------ | ------- |
|
itemPadding | String | Padding of each children | 'unset' |
| minWidth | String | Min width of the nav | '250px' |
| offset | Number | Extra width to trigger | 0 |
| debounce | Number | Debounce | 0 |
| isOpen | Boolean | Dropdown open state | false |$3
`
children?: React.ReactNode
``