UNPKG

@coreui/react

Version:

CoreUI React 17 Bootstrap 4 components

32 lines (28 loc) 1.08 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { tagPropType } from '../utils/helper.js'; //component - CoreUI / CListGroupItemHeading var CListGroupItemHeading = function CListGroupItemHeading(props) { var Tag = props.tag, className = props.className, innerRef = props.innerRef, attributes = _objectWithoutPropertiesLoose(props, ["tag", "className", "innerRef"]); // render var classes = classNames('list-group-item-heading', className); return /*#__PURE__*/React.createElement(Tag, _extends({ className: classes }, attributes, { ref: innerRef })); }; CListGroupItemHeading.propTypes = { tag: tagPropType, className: PropTypes.any, // innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]) }; CListGroupItemHeading.defaultProps = { tag: 'h5' }; export default CListGroupItemHeading;