menu-wrapper
v0.0.1arrow_drop_downv0.0.1
STATUS
Passing
DOWNLOADS
8
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
18 KB
1 contributor
Like
Install menu-wrapper as a package?
Copied
npm i @bit/ace.component_library.menu-wrapper
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Properties
Name | Type | Default value |
---|---|---|
renderMenu | function | (index, page, secondary, router) => <AceMenuLink
key={index}
href={page.slug}
secondary={secondary}
active={router.pathname === page.slug}>{page.linkName}</AceMenuLink> |
renderStructure | function | |
pages | object | {
test1: {
linkName: 'Test Element 1',
slug: `/test_element_1`
},
test2: {
linkName: 'Test Element 2',
slug: `/test_element_2`
}
,
test3:{
linkName: 'Test Element 3',
slug: `/test_element_3`
}
,
test4: {
linkName: 'Test Element 4',
slug:`/test_element_4`
}
} |
router | object | { pathname: '/test_element_1' } |
secondary | bool | true |