@boomerang-io/carbon-addons-boomerang-react
Version:
Carbon Addons for Boomerang apps
34 lines (27 loc) • 1.08 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var settings = require('../settings.js');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var React__default = /*#__PURE__*/_interopDefault(React);
/*
IBM Confidential
694970X, 69497O0
© Copyright IBM Corp. 2022, 2024
*/
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* `ListBoxMenu` is a simple container node that isolates the `list-box__menu`
* class into a single component. It is also being used to validate given
* `children` components.
*/
const ListBoxMenu = React__default.default.forwardRef(function ListBoxMenu({ children, id, ...rest }, ref) {
return (React__default.default.createElement("div", { ref: ref, id: id, className: `${settings.prefix}--list-box__menu`, role: "listbox", ...rest }, children));
});
ListBoxMenu.displayName = "ListBoxMenu";
exports.default = ListBoxMenu;