terra-table
Version:
The Terra Table component provides user a way to display data in an accessible table format.
27 lines (22 loc) • 741 B
JavaScript
import PropTypes from 'prop-types';
import cellShape from './cellShape';
const rowShape = PropTypes.shape({
/**
* An identifier to uniquely identify the row within the table.
*/
id: PropTypes.string.isRequired,
/**
* Data to be displayed in the cells of the row. Cells will be rendered in the row in the order given.
*/
cells: PropTypes.arrayOf(cellShape),
/**
* A boolean indicating whether or not the row should render as selected.
*/
isSelected: PropTypes.bool,
/**
* A string identifier used to describe the row contents. This value will be used to construct additional labels
* for internal controls (e.g. row selection cells).
*/
ariaLabel: PropTypes.string,
});
export default rowShape;