UNPKG

@carbon/ibm-cloud-cognitive-security

Version:
39 lines (32 loc) 1.07 kB
import _extends from "@babel/runtime/helpers/extends"; /** * Copyright IBM Corp. 2020, 2021 * * 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 { bool, func, node, object, oneOfType, string } from 'prop-types'; import React from 'react'; /** * The combo button item provides additional actions a user can take. */ var ComboButtonItem = function ComboButtonItem(_ref) { var rest = _extends({}, _ref); return /*#__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]) }; ComboButtonItem.defaultProps = { disabled: null, href: null, renderIcon: null }; export { ComboButtonItem };