MCPcopy Create free account
hub / github.com/docker/getting-started / DropdownToggle

Function DropdownToggle

app/src/static/js/react-bootstrap.js:2766–2782  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

2764};
2765
2766function DropdownToggle(_ref) {
2767 var children = _ref.children;
2768 return _react.default.createElement(_DropdownContext.default.Consumer, null, function (_ref2) {
2769 var show = _ref2.show,
2770 toggle = _ref2.toggle,
2771 toggleRef = _ref2.toggleRef;
2772 return children({
2773 show: show,
2774 toggle: toggle,
2775 props: {
2776 ref: toggleRef,
2777 'aria-haspopup': true,
2778 'aria-expanded': !!show
2779 }
2780 });
2781 });
2782}
2783
2784DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
2785DropdownToggle.propTypes = propTypes;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…