UNPKG

@carbon/ibm-products

Version:
33 lines (31 loc) 1.11 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. */ import React from "react"; import { bool, func, node, object, oneOfType, string } from "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.createElement("span", rest); ComboButtonItem.propTypes = { /** Provide the contents of the `ComboButtonItem` */ children: node.isRequired, /** Specify whether the `ComboButton` should be disabled, or not */ disabled: bool, /** Provide an optional `href` for the `ComboButtonItem` to become an `a` element */ href: string, /** Provide an optional icon to render */ renderIcon: oneOfType([func, object]) }; //#endregion export { ComboButtonItem };