UNPKG

@carbon/ibm-products

Version:
39 lines (37 loc) 1.47 kB
/** * Copyright IBM Corp. 2020, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ const require_runtime = require("../../_virtual/_rolldown/runtime.js"); const require_index = require("../../node_modules/classnames/index.js"); const require_Toolbar = require("./Toolbar.js"); let react = require("react"); react = require_runtime.__toESM(react); let prop_types = require("prop-types"); //#region src/components/Toolbar/ToolbarGroup.tsx /** * Copyright IBM Corp. 2021, 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default); /** Toolbar groups organize the commands within a toolbar into related groups. */ const ToolbarGroup = (0, react.forwardRef)(({ className, children, ...rest }, ref) => { return /* @__PURE__ */ react.default.createElement("div", { ...rest, ref, className: (0, import_classnames.default)(`${require_Toolbar.blockClass}__group`, className) }, children); }); ToolbarGroup.displayName = "ToolbarGroup"; ToolbarGroup.propTypes = { /** Provide the content of the `ToolbarGroup` */ children: prop_types.node.isRequired, /** Provide an optional class to be applied to the containing node */ className: prop_types.string }; //#endregion exports.ToolbarGroup = ToolbarGroup;