Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* Marks the NavItem with a matching `eventKey` as active. Has a
* higher precedence over `activeHref`.
*/
activeKey: PropTypes.any,
/**
* Marks the child NavItem with a matching `href` prop as active.
*/
activeHref: PropTypes.string,
/**
* NavItems are be positioned vertically.
*/
stacked: PropTypes.bool,
justified: all(
PropTypes.bool,
({ justified, navbar }) =>
justified && navbar
? Error('justified navbar `Nav`s are not supported')
: null
),
/**
* A callback fired when a NavItem is selected.
*
* ```js
* function (
* Any eventKey,
* SyntheticEvent event?
* )
* ```
/**
* An html id attribute, necessary for assistive technologies, such as screen readers.
* @type {string|number}
* @required
*/
id: isRequiredForA11y(
PropTypes.oneOfType([PropTypes.string, PropTypes.number])
),
componentClass: elementType,
/**
* The children of a Dropdown may be a `` or a ``.
* @type {node}
*/
children: all(
requiredRoles(TOGGLE_ROLE, MENU_ROLE),
exclusiveRoles(MENU_ROLE)
),
/**
* Whether or not component is disabled.
*/
disabled: PropTypes.bool,
/**
* Align the menu to the right side of the Dropdown toggle
*/
pullRight: PropTypes.bool,
/**
* Whether or not the Dropdown is visible.