1.15.1 • Published 4 years ago
@fenderdigital/react-menu v1.15.1
Menu for Fender React UI Kit
Description
Renders a navigation menu with submenu links, and accordion functionality for mobile devices.
Installation and Usage
yarn add @fenderdigital/react-menu --save
import Menu from '@fenderdigital/react-menu';
Props
dataId
- An id for unit and e2s testing.firstName
- A name for an authenticated a user.isHoverable
- Enables the menu to be expand/collapse its with onHover.onClick
- A callback that passes type, label and url values. Useful for tracking.offsetTop
- Provides a way to offset the top position to account for an app bar header.pathname
- Provides a way for the menu to know what route it's currently on.primary
- A primary set of a navigation items. Needed for layout purposes.profileUrl
- A url link to the user's profile.signOutUrl
- The signout url for connect.secondary
- A secondary set of navigation items. Needed for layout purposes.
propName | propType | defaultValue | isRequired |
---|---|---|---|
dataId | string | 'menu' | no |
firstName | string | - | yes |
onClick | funct | - | yes |
pathname | string | '/path' | no |
primary | array | - | yes |
profileUrl | string | - | yes |
secondary | array | - | yes |
signOutUrl | string | - | yes |
Development
Check the Monorepo README for development documentation.
1.15.1
4 years ago
1.15.0
4 years ago
1.14.2
4 years ago
1.14.1
4 years ago
1.14.0
4 years ago
1.13.0
4 years ago
1.12.0
4 years ago
1.11.0
5 years ago
1.10.0
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago