@boomerang-io/carbon-addons-boomerang-react
Version:
Carbon Addons for Boomerang apps
26 lines (23 loc) • 820 B
JavaScript
import React from 'react';
import { prefix } from '../settings.js';
/*
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.forwardRef(function ListBoxMenu({ children, id, ...rest }, ref) {
return (React.createElement("div", { ref: ref, id: id, className: `${prefix}--list-box__menu`, role: "listbox", ...rest }, children));
});
ListBoxMenu.displayName = "ListBoxMenu";
export { ListBoxMenu as default };