menu-wrapper

v0.0.1arrow_drop_down
v0.0.1
STATUS
Passing
DOWNLOADS
8
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
18 KB
1 contributor
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
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
Properties
NameTypeDefault 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
booltrue
Help and resources