UNPKG

@coreui/react

Version:

UI Components Library for React.js

22 lines (18 loc) 1.88 kB
'use strict'; var tslib_es6 = require('../../node_modules/tslib/tslib.es6.js'); var React = require('react'); var PropTypes = require('prop-types'); var index = require('../../_virtual/index.js'); var CFormControlWrapper = require('./CFormControlWrapper.js'); var CFormTextarea = React.forwardRef(function (_a, ref) { var children = _a.children, className = _a.className, feedback = _a.feedback, feedbackInvalid = _a.feedbackInvalid, feedbackValid = _a.feedbackValid, floatingClassName = _a.floatingClassName, floatingLabel = _a.floatingLabel, id = _a.id, invalid = _a.invalid, label = _a.label, plainText = _a.plainText, text = _a.text, tooltipFeedback = _a.tooltipFeedback, valid = _a.valid, rest = tslib_es6.__rest(_a, ["children", "className", "feedback", "feedbackInvalid", "feedbackValid", "floatingClassName", "floatingLabel", "id", "invalid", "label", "plainText", "text", "tooltipFeedback", "valid"]); return (React.createElement(CFormControlWrapper.CFormControlWrapper, { describedby: rest['aria-describedby'], feedback: feedback, feedbackInvalid: feedbackInvalid, feedbackValid: feedbackValid, floatingClassName: floatingClassName, floatingLabel: floatingLabel, id: id, invalid: invalid, label: label, text: text, tooltipFeedback: tooltipFeedback, valid: valid }, React.createElement("textarea", tslib_es6.__assign({ className: index.default(plainText ? 'form-control-plaintext' : 'form-control', { 'is-invalid': invalid, 'is-valid': valid, }, className), id: id }, rest, { ref: ref }), children))); }); CFormTextarea.propTypes = tslib_es6.__assign({ className: PropTypes.string, id: PropTypes.string, plainText: PropTypes.bool }, CFormControlWrapper.CFormControlWrapper.propTypes); CFormTextarea.displayName = 'CFormTextarea'; exports.CFormTextarea = CFormTextarea; //# sourceMappingURL=CFormTextarea.js.map