@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
34 lines (30 loc) • 1.02 kB
JavaScript
/**
* MSKCC 2021, 2024
*/
import PropTypes from 'prop-types';
import React__default from 'react';
import Button from '../Button/Button.js';
import '../Button/Button.Skeleton.js';
const TableBatchAction = props => /*#__PURE__*/React__default.createElement(Button, props);
TableBatchAction.propTypes = {
/**
* Specify if the button is an icon-only button
*/
hasIconOnly: PropTypes.bool,
/**
* If specifying the `renderIcon` prop, provide a description for that icon that can
* be read by screen readers
*/
iconDescription: props => {
if (props.renderIcon && !props.children && !props.iconDescription) {
return new Error('renderIcon property specified without also providing an iconDescription property.');
}
return undefined;
},
/**
* Optional function to render your own icon in the underlying button
*/
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
};
var TableBatchAction$1 = TableBatchAction;
export { TableBatchAction$1 as default };