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
/
TableRow.js
8 lines
(7 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
*
as
React
from
'react'
;
export
const
TableRow
= (
{
as
=
'tr'
, children, ...rest }
) => {
return
React
.
createElement
(
as
, {
role
:
as
!==
'tr'
?
'row'
:
undefined
, ...rest, }, children); };