terra-table
Version:
The Terra Table component provides user a way to display data in an accessible table format.
20 lines (17 loc) • 505 B
JavaScript
import PropTypes from 'prop-types';
import rowShape from './rowShape';
const sectionShape = PropTypes.shape({
/**
* An identifier for the section. This identifier should be unique across the set of sections provided.
*/
id: PropTypes.string.isRequired,
/**
* A text string to render within the section header.
*/
text: PropTypes.string,
/**
* An array of row objects to be rendered within the section.
*/
rows: PropTypes.arrayOf(rowShape),
});
export default sectionShape;