dropup: PropTypes.bool, /** * 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 `<Dropdown.Toggle>` or a `<Dropdown.Menu>`. * @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. * * @controllable onToggle
* Highlight the menu item as active. */ active: PropTypes.bool, /** * Disable the menu item, making it unselectable. */ disabled: PropTypes.bool, /** * Styles the menu item as a horizontal rule, providing visual separation between * groups of menu items. */ divider: all(PropTypes.bool, function (_ref) { var divider = _ref.divider, children = _ref.children; return divider && children ? new Error('Children will not be rendered for dividers') : null; }), /** * Value passed to the `onSelect` handler, useful for identifying the selected menu item. */ eventKey: PropTypes.any, /** * Styles the menu item as a header label, useful for describing a group of menu items. */ header: PropTypes.bool, /** * HTML `href` attribute corresponding to `a.href`.
* @type {string} */ activeKey: PropTypes.any, /** * Have all `NavItem`s to proportionatly fill all available width. */ fill: PropTypes.bool, /** * Have all `NavItem`s to evenly fill all available width. * * @type {boolean} */ justify: all(PropTypes.bool, ({ justify, navbar }) => justify && navbar ? Error('justify navbar `Nav`s are not supported') : null, ), /** * A callback fired when a NavItem is selected. * * ```js * function ( * Any eventKey, * SyntheticEvent event? * ) * ``` */ onSelect: PropTypes.func, /**
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? * ) * ``` */ onSelect: PropTypes.func,