<th id="" class="" style="">
</th>
<th id="{{id}}" class="{{modifier}}" style="{{style}}">
{{#if text}}{{{text}}}{{/if}}
{{> @children}}
</th>
{
"id": null,
"modifier": null,
"style": null,
"text": null
}
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const TableHeaderCell = (props) => {
return(
<th
id={props.id}
className={cx([props.modifier])}
>
{props.children}
</th>
);
};
TableHeaderCell.propTypes = {
id: PropTypes.string,
modifier: PropTypes.string
};
export default TableHeaderCell;
A TableHeaderCell is a fancy way of saying the <th>
element to be used inside of tables to make the heading.
<tr>
that is inside of a <table>
or else you’re a maniac.