Tablehead

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

TableHead

TableHead is our component for the <thead> attribute used within tables.

Best Practices

  • It should always be used within a <table> alongside of a <tbody> element.