Sha256: f4c9d491557fc30f29652080ceb51f891caa5689102ec843cc1d2fadc5a84e02
Contents?: true
Size: 912 Bytes
Versions: 8
Compression:
Stored size: 912 Bytes
Contents
(function() { Rev.registerComponent('Input', { getDefaultProps: function() { return { dom: "input" }; }, render: function() { var dom, inputClassName, inputProps, labelClassName; labelClassName = this.cx({ 'RevInput': true, 'RevInput--label': true, 'error': this.props.error }); inputProps = this.getPropsWithout('error', 'className'); inputClassName = this.cx({ 'RevInput--input': true, 'error': this.props.error }); dom = this.props.dom; return React.createElement("label", { "className": labelClassName }, this.props.label, React.createElement(dom, _(inputProps).extend({ className: inputClassName })), (this.props.error ? React.createElement("small", { "className": "RevError error" }, this.props.error) : void 0)); } }); }).call(this);
Version data entries
8 entries across 8 versions & 1 rubygems