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
/
TableFoot.js
6 lines
(5 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
import
{ jsx
as
_jsx }
from
"react/jsx-runtime"
;
import
{
TableBody
}
from
'./TableBody'
;
export
const
TableFoot
= (
{
as
=
'tfoot'
, ...rest }
) => {
return
_jsx
(
TableBody
,
Object
.
assign
({
as
:
as
,
role
:
as
!==
'tfoot'
?
'rowgroup'
:
undefined
}, rest),
void
0
); };