How to use the semantic-ui-react.Form.TextArea function in semantic-ui-react

To help you get started, we’ve selected a few semantic-ui-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qhacks / qhacks-dashboard / packages / client / components / Forms / ApplyForm.js View on Github external
label="Why do you want to come to QHacks 2018? (1000 characters max)"
        validate={[
          required({
            msg: "Please tell us why you want to come to QHacks 2018!"
          }),
          length({
            max: 1000,
            msg: "Your answer cannot exceed 1000 characters!"
          })
        ]}
      />

      

      <p>
        By applying you agree to adhere to{" "}
        <a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf" rel="noopener noreferrer">
          MLH's Code of Conduct
        </a>.
      </p>
    
  );
}
github sillsdev / appbuilder-portal / source / SIL.AppBuilder.Portal.Frontend / src / ui / components / inputs / auto-saving-input / index.tsx View on Github external
export default function AutoSavingInput({ value, onChange, InputElement, timeout }: IProps) {
  const Input = InputElement || Form.TextArea;
  const [localValue, setLocalValue] = useState(value);
  const save = useDebouncedCallback((newValue) =&gt; onChange(newValue), timeout, []);

  const onInputChange = (e: React.KeyboardEvent) =&gt; {
    const newValue = e.currentTarget.value;

    if (localValue === newValue) {
      return;
    }

    setLocalValue(newValue);
    save(newValue);
  };

  const onFormSubmit = (e: React.FormEvent) =&gt; {
    e.preventDefault();
github zabute / formsy-semantic-ui-react / src / FormsyInput.js View on Github external
const { allowError } = this.state;
    const error = !isPristine() &amp;&amp; !isValid() &amp;&amp; allowError;

    const inputProps = {
      ...filterSuirElementProps(this.props),
      value: getValue() || isPristine() &amp;&amp; defaultValue || '',
      onChange: this.handleChange,
      onBlur: this.handleBlur,
      className: inputClassName,
      error: !disabled &amp;&amp; error,
      label,
      id,
    };

    const shortHandMode = (inputAs === Form.Input || inputAs === Form.TextArea);
    const inputNode = shortHandMode ? createElement(inputAs).props.control : inputAs;

    if (shortHandMode) {
      delete inputProps.label;
      if (inputAs === Form.TextArea) delete inputProps.error;
    }

    return (
github indico / indico / indico / modules / rb_new / client / js / modules / bookRoom / BookRoomModal.jsx View on Github external
disabled={bookingBlocked(fprops)} /&gt;
                                        
                                    
                                    
                                    
                                
                                {!link &amp;&amp; !fprops.submitSucceeded &amp;&amp; (
                                    this.renderRelatedEventsDropdown(bookingBlocked(fprops), fprops.form.mutators)
                                )}
                            
                            {conflictsExist &amp;&amp; this.renderBookingConstraints(Object.values(availability.conflicts))}
                            {this.renderBookingState(fprops)}
                        
                    
                
github zabute / formsy-semantic-ui-react / src / FormsyInput.js View on Github external
...filterSuirElementProps(this.props),
      value: getValue() || isPristine() &amp;&amp; defaultValue || '',
      onChange: this.handleChange,
      onBlur: this.handleBlur,
      className: inputClassName,
      error: !disabled &amp;&amp; error,
      label,
      id,
    };

    const shortHandMode = (inputAs === Form.Input || inputAs === Form.TextArea);
    const inputNode = shortHandMode ? createElement(inputAs).props.control : inputAs;

    if (shortHandMode) {
      delete inputProps.label;
      if (inputAs === Form.TextArea) delete inputProps.error;
    }

    return (
      
        { shortHandMode &amp;&amp; label &amp;&amp; <label> { label } </label> }
        { createElement(inputNode, { ...inputProps }) }
        { !disabled &amp;&amp; error &amp;&amp; errorLabel &amp;&amp; cloneElement(errorLabel, {}, getErrorMessage()) }