@carbon/react
Version:
React components for the Carbon Design System
59 lines (58 loc) • 1.96 kB
TypeScript
/**
* 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.
*/
import PropTypes from 'prop-types';
import React, { type HTMLAttributes } from 'react';
export interface TableContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
/**
* Specify if the entire table has AI generated contents
*/
aiEnabled?: boolean;
/**
* Optional description text for the Table
*/
description?: React.ReactNode;
/**
* Specify whether the table should have a sticky header
*/
stickyHeader?: boolean;
/**
* If true, will use a width of 'fit-content' to match the inner table width
*/
useStaticWidth?: boolean;
/**
* Provide a title for the Table
*/
title?: React.ReactNode;
}
declare const TableContainer: {
({ aiEnabled, className, children, title, description, stickyHeader, useStaticWidth, ...rest }: TableContainerProps): import("react/jsx-runtime").JSX.Element;
propTypes: {
/**
* Specify if the entire table has AI generated contents
*/
aiEnabled: PropTypes.Requireable<boolean>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
className: PropTypes.Requireable<string>;
/**
* Optional description text for the Table
*/
description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
/**
* Specify whether the table should have a sticky header
*/
stickyHeader: PropTypes.Requireable<boolean>;
/**
* Provide a title for the Table
*/
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
/**
* If true, will use a width of 'fit-content' to match the inner table width
*/
useStaticWidth: PropTypes.Requireable<boolean>;
};
};
export default TableContainer;