fannypack
Version:
An accessible, composable, and friendly React UI Kit
24 lines (18 loc) • 429 B
JavaScript
// @flow
import React, { type Node } from 'react';
import { TableHeadCell as _TableHeadCell } from './styled';
type Props = {
as?: any,
children: Node,
className?: string
};
const TableHeadCell = ({ as, children, className, ...props }: Props) => (
<_TableHeadCell as={as} {...props}>
{children}
</_TableHeadCell>
);
TableHeadCell.defaultProps = {
as: 'th',
className: null
};
export default TableHeadCell;