@carbon/react
Version:
React components for the Carbon Design System
39 lines (31 loc) • 1.24 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
var PropTypes = require('prop-types');
var React = require('react');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
const TableBody = ({
children,
className,
...rest
}) => /*#__PURE__*/React__default["default"].createElement("tbody", _rollupPluginBabelHelpers["extends"]({
"aria-live": rest['aria-live'] ?? 'polite',
className: className
}, rest), children);
TableBody.propTypes = {
/**
* `polite` Adjust the notification behavior of screen readers
*/
'aria-live': PropTypes__default["default"].oneOf(['polite', 'assertive', 'off']),
children: PropTypes__default["default"].node,
className: PropTypes__default["default"].string
};
exports["default"] = TableBody;