@carbon/react
Version:
React components for the Carbon Design System
35 lines (33 loc) • 863 B
JavaScript
/**
* Copyright IBM Corp. 2016, 2026
*
* 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 "react";
import PropTypes from "prop-types";
import { jsx } from "react/jsx-runtime";
//#region src/components/DataTable/TableBody.tsx
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const TableBody = ({ children, className, ...rest }) => /* @__PURE__ */ jsx("tbody", {
"aria-live": rest["aria-live"] ?? "polite",
className,
...rest,
children
});
TableBody.propTypes = {
"aria-live": PropTypes.oneOf([
"polite",
"assertive",
"off"
]),
children: PropTypes.node,
className: PropTypes.string
};
//#endregion
export { TableBody as default };