@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
49 lines (48 loc) • 1.55 kB
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
import PropTypes from 'prop-types';
import React from 'react';
import { ReactAttr } from '../../types/common';
export interface TableContainerProps extends Omit<ReactAttr<HTMLDivElement>, 'title'> {
/**
* 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: {
({ className, children, title, description, stickyHeader, useStaticWidth, ...rest }: TableContainerProps): JSX.Element;
propTypes: {
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;