UNPKG
@table-utils/jsx-table
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
A simple, accessible table view.
@table-utils/jsx-table
/
dist-src
/
table
/
TableCell.js
8 lines
(7 loc)
•
200 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
*
as
React
from
'react'
;
export
const
TableCell
= (
{
as
=
'td'
, ...rest }
) => {
return
React
.
createElement
(
as
, {
role
:
as
!==
'td'
?
'cell'
:
undefined
, ...rest, }); };