How to use the formsy-react.withFormsy function in formsy-react

To help you get started, we’ve selected a few formsy-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 elastic / kibana / x-pack / plugins / beats_management / public / components / inputs / select.tsx View on Github external
value={getValue() || ''}
          options={options}
          isInvalid={!disabled && error}
          onChange={this.handleChange}
          onBlur={this.handleBlur}
          fullWidth={fullWidth}
          disabled={disabled}
          required={required}
          className={className}
        />
      
    );
  }
}

export const FormsyEuiSelect = withFormsy(FieldSelect);
github zabute / formsy-semantic-ui-react / src / FormsyInput.js View on Github external
className={ className }
        required={ required && passRequiredToField }
        error={ !disabled && error }
        width={ width }
        inline={ inline }
        disabled={disabled}
      >
        { shortHandMode &amp;&amp; label &amp;&amp; <label> { label } </label> }
        { createElement(inputNode, { ...inputProps }) }
        { !disabled &amp;&amp; error &amp;&amp; errorLabel &amp;&amp; cloneElement(errorLabel, {}, getErrorMessage()) }
      
    );
  }
}

export default withFormsy(FormsyInput);
github microsoft / fluent-ui-react / docs / src / prototypes / formValidation / FormsyFormFieldWithErrorMessage.tsx View on Github external
...(!children &amp;&amp; {
        control: {
          ...control,
          value: (this.props as any).getValue(),
          onChange: e =&gt; {
             (this.props as any).setValue(e.target.value)
          },
        },
        message: { content: error, styles: { color: 'red' } },
      }),
    }
    return 
  }
}

export default withFormsy(FormFieldWrapper)
github itzg / react-mui-login-register / src / components / ValidatedTextField.js View on Github external
return 
  }

  handleChange = event =&gt; {
    this.props.setValue(event.target.value)
  }
}

export default withFormsy(ValidatedTextField);
github twisty / formsy-react-components / src / index.ts View on Github external
import InputComponent from './components/input';
import FileComponent from './components/input-file';
import RadioGroupComponent from './components/radio-group';
import SelectComponent from './components/select';
import TextareaComponent from './components/textarea';
import Form from './form';
import FrcContext from './context/frc';
import Row from './components/row';
import withFRC from './hoc/component';

const Checkbox = withFormsy(withFRC(CheckboxComponent));
const CheckboxGroup = withFormsy(withFRC(CheckboxGroupComponent));
const Input = withFormsy(withFRC(InputComponent));
const File = withFormsy(withFRC(FileComponent));
const RadioGroup = withFormsy(withFRC(RadioGroupComponent));
const Select = withFormsy(withFRC(SelectComponent));
const Textarea = withFormsy(withFRC(TextareaComponent));

export {
  Form,
  FrcContext,
  Row,
  Checkbox,
  CheckboxGroup,
  File,
  Input,
  RadioGroup,
  Select,
  Textarea,
};
github twisty / formsy-react-components / src / index.ts View on Github external
import {withFormsy} from 'formsy-react';
import CheckboxComponent from './components/checkbox';
import CheckboxGroupComponent from './components/checkbox-group';
import InputComponent from './components/input';
import FileComponent from './components/input-file';
import RadioGroupComponent from './components/radio-group';
import SelectComponent from './components/select';
import TextareaComponent from './components/textarea';
import Form from './form';
import FrcContext from './context/frc';
import Row from './components/row';
import withFRC from './hoc/component';

const Checkbox = withFormsy(withFRC(CheckboxComponent));
const CheckboxGroup = withFormsy(withFRC(CheckboxGroupComponent));
const Input = withFormsy(withFRC(InputComponent));
const File = withFormsy(withFRC(FileComponent));
const RadioGroup = withFormsy(withFRC(RadioGroupComponent));
const Select = withFormsy(withFRC(SelectComponent));
const Textarea = withFormsy(withFRC(TextareaComponent));

export {
  Form,
  FrcContext,
  Row,
  Checkbox,
  CheckboxGroup,
  File,
  Input,
  RadioGroup,
  Select,
  Textarea,
github zabute / formsy-semantic-ui-react / src / FormsyCheckbox.js View on Github external
as={ as }
        className={ className }
        required={ required &amp;&amp; passRequiredToField }
        error={ error }
        width={ width }
        inline={ inline }
        disabled={disabled}
      &gt;
        { createElement(inputAs, { ...checkboxProps }) }
        { error &amp;&amp; errorLabel &amp;&amp; cloneElement(errorLabel, {}, getErrorMessage()) }
      
    );
  }
}

export default withFormsy(FormsyCheckbox);
github elastic / kibana / x-pack / legacy / plugins / beats_management / public / components / inputs / multi_input.tsx View on Github external
value={getValue() ? getValue().join('\n') : ''}
          isInvalid={!disabled &amp;&amp; error}
          placeholder={placeholder}
          onChange={this.handleChange}
          onBlur={this.handleBlur}
          fullWidth={fullWidth}
          disabled={disabled}
          required={required}
          className={className}
        /&gt;
      
    );
  }
}

export const FormsyEuiMultiFieldText = withFormsy(MultiFieldText);
github catho / quantum / components / Form / Input.jsx View on Github external
import React from 'react';
import { withFormsy } from 'formsy-react';

import DefaultInput from '../Input';

class InputClass extends DefaultInput {
}

const WithFormsyInput = withFormsy(InputClass);

const Input = ({ ...props }) =&gt; ;

Input.propTypes = {};
Input.defaultProps = {};

export default Input;
github Giveth / giveth-dapp / src / components / QuillFormsy.jsx View on Github external
helpText: PropTypes.string,
  placeholder: PropTypes.string,
  label: PropTypes.string,

  templatesDropdown: PropTypes.bool,
};

QuillFormsy.defaultProps = {
  helpText: '',
  placeholder: '',
  label: '',
  handleTemplateChange: () => {},
  templatesDropdown: false,
};

export default withFormsy(QuillFormsy);

formsy-react

A form input builder and validator for React

MIT
Latest version published 5 months ago

Package Health Score

76 / 100
Full package analysis