@carbon/ibm-products
Version:
Carbon for IBM Products
35 lines (33 loc) • 1.29 kB
JavaScript
/**
* 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");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
//#region src/components/ComboButton/ComboButtonItem/index.tsx
/**
* Copyright IBM Corp. 2020, 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.
*/
/**
* The combo button item provides additional actions a user can take.
*/
const ComboButtonItem = ({ ...rest }) => /* @__PURE__ */ react.default.createElement("span", rest);
ComboButtonItem.propTypes = {
/** Provide the contents of the `ComboButtonItem` */
children: prop_types.node.isRequired,
/** Specify whether the `ComboButton` should be disabled, or not */
disabled: prop_types.bool,
/** Provide an optional `href` for the `ComboButtonItem` to become an `a` element */
href: prop_types.string,
/** Provide an optional icon to render */
renderIcon: (0, prop_types.oneOfType)([prop_types.func, prop_types.object])
};
//#endregion
exports.ComboButtonItem = ComboButtonItem;