UNPKG

@coreui/react

Version:

CoreUI React 17 Bootstrap 4 components

37 lines (28 loc) 790 B
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' //component - CoreUI / CSidebarFooter const CSidebarFooter = props => { const { tag: Tag, className, // innerRef, ...attributes } = props // render const classes = classNames('c-sidebar-footer', className) return ( <Tag className={classes} {...attributes} ref={innerRef}/> ) } CSidebarFooter.propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]), // innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]) }; CSidebarFooter.defaultProps = { tag: 'div' }; export default CSidebarFooter