Tabledatacell

<td id="" class="" style="">

</td>
<td id="{{id}}" class="{{modifier}}" style="{{style}}">
    {{#if text}}{{{text}}}{{/if}}
    {{> @children}}
</td>
{
  "id": null,
  "modifier": null,
  "style": null,
  "text": null
}
  • Content:
    import React from 'react';
    import PropTypes from 'prop-types';
    import cx from 'classnames';
    
    const TableDataCell = (props) => {
        return(
            <td
                id={props.id}
                className={cx([props.modifier])}
            >
                {props.children}
            </td>
        );
    };
    
    TableDataCell.propTypes = {
        id: PropTypes.string,
        modifier: PropTypes.string
    };
    
    export default TableDataCell;
    
  • URL: /components/raw/td/TableDataCell.jsx
  • Filesystem Path: components/atoms/TableDataCell/TableDataCell.jsx
  • Size: 406 Bytes

TableDataCell

TableDataCell is our component for the <td> element used within tables. You can put anything you’d like inside of here.

Best Practices

  • Only use this element within a <tr> element inside of a table.