@carbon/react
Version:
React components for the Carbon Design System
30 lines (26 loc) • 791 B
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.
*/
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import PropTypes from 'prop-types';
import React from 'react';
const TableBody = ({
children,
className,
...rest
}) => /*#__PURE__*/React.createElement("tbody", _extends({
"aria-live": rest['aria-live'] ?? 'polite',
className: className
}, rest), children);
TableBody.propTypes = {
/**
* `polite` Adjust the notification behavior of screen readers
*/
'aria-live': PropTypes.oneOf(['polite', 'assertive', 'off']),
children: PropTypes.node,
className: PropTypes.string
};
export { TableBody as default };