UNPKG

react-super-responsive-table

Version:

react-super-responsive-table converts your table data to a user-friendly list in mobile view.

19 lines (18 loc) 680 B
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; import React from 'react'; import allowed from '../utils/allowed'; function Thead(props) { var children = props.children; return (React.createElement("thead", __assign({ "data-testid": "thead" }, allowed(props)), React.cloneElement(children, { inHeader: true }))); } export default Thead;