semantic-ui-react
Version:
The official Semantic-UI-React integration.
36 lines (28 loc) • 622 B
JavaScript
import React from 'react'
import {
customPropTypes,
getUnhandledProps,
META,
} from '../../lib'
import TableHeader from './TableHeader'
/**
* A table can have a footer.
*/
function TableFooter(props) {
const { as } = props
const rest = getUnhandledProps(TableFooter, props)
return <TableHeader {...rest} as={as} />
}
TableFooter._meta = {
name: 'TableFooter',
type: META.TYPES.COLLECTION,
parent: 'Table',
}
TableFooter.propTypes = {
/** An element type to render as (string or function). */
as: customPropTypes.as,
}
TableFooter.defaultProps = {
as: 'tfoot',
}
export default TableFooter