UNPKG

@coreui/react-pro

Version:

UI Components Library for React.js

19 lines (16 loc) 810 B
import { __rest } from '../../node_modules/tslib/tslib.es6.js'; import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; import classNames from '../../_virtual/index.js'; const CFormLabel = forwardRef((_a, ref) => { var { children, className, customClassName } = _a, rest = __rest(_a, ["children", "className", "customClassName"]); return (React.createElement("label", Object.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