UNPKG

@carbon/react

Version:

React components for the Carbon Design System

34 lines (28 loc) 902 B
/** * 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. */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js'); var PropTypes = require('prop-types'); var React = require('react'); const TableBody = ({ children, className, ...rest }) => /*#__PURE__*/React.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.oneOf(['polite', 'assertive', 'off']), children: PropTypes.node, className: PropTypes.string }; exports.default = TableBody;