How to use uniforms-material - 2 common examples

To help you get started, we’ve selected a few uniforms-material 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 vazco / uniforms / packages / uniforms-material / __tests__ / wrapField.tsx View on Github external
test(' - renders wrapper with error', () => {
  const element = wrapField(
    {
      showInlineError: true,
      error: new Error(),
      errorMessage: 'Error message',
    },
    <div>,
  );
  const wrapper = mount(element);

  expect(wrapper.find(FormControl).prop('error')).toBe(true);
  expect(wrapper.find(FormHelperText).text()).toBe('Error message');
});
</div>
github vazco / uniforms / packages / uniforms-material / __tests__ / wrapField.js View on Github external
test(' - renders wrapper with helper text', () =&gt; {
  const element = wrapField({ helperText: 'Helper text' }, <div>);
  const wrapper = mount(element);

  expect(wrapper.find(FormHelperText).text()).toBe('Helper text');
});
</div>

uniforms-material

Material-UI components for uniforms.

MIT
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis

Popular uniforms-material functions