UNPKG

@coreui/react

Version:

UI Components Library for React.js

19 lines (16 loc) 860 B
import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js'; import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; import classNames from '../../_virtual/index.js'; var CFormLabel = forwardRef(function (_a, ref) { var children = _a.children, className = _a.className, customClassName = _a.customClassName, rest = __rest(_a, ["children", "className", "customClassName"]); return (React.createElement("label", __assign({ className: customClassName !== null && customClassName !== void 0 ? customClassName : classNames('form-label', className) }, rest, { ref: ref }), children)); }); CFormLabel.propTypes = { children: PropTypes.node, className: PropTypes.string, customClassName: PropTypes.string, }; CFormLabel.displayName = 'CFormLabel'; export { CFormLabel }; //# sourceMappingURL=CFormLabel.js.map