<tr id="" class="" style="">
</tr>
<tr id="{{id}}" class="{{modifier}}" style="{{style}}">
{{> @children}}
</tr>
{
"id": null,
"modifier": null,
"style": null
}
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const TableRow = (props) => {
return(
<div
id={props.id}
className={cx([props.modifier])}
>
{props.children}
</div>
);
};
TableRow.propTypes = {
id: PropTypes.string,
modifier: PropTypes.string
};
export default TableRow;
TableRow is our component for the <tr>
element used within tables.
<table>
.