2.1.1 • Published 5 years ago

uniforms-rmwc v2.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

uniforms-rmwc

React wrapper Material Design (Web) Components for uniforms.

Install

$ npm install uniforms-rmwc --save

This version 2.x.x required rmwc 2.x.x If you are using rmwc ^1.8.x, make sure to use uniforms-rmwc 1.1.9

Spacial Usage Examples

DateField, TimeField, HiddenField does not generate atomatically from AutoField. You should define those feilds manually.

TextField

  1. Assigned props We can use value assigned props as same as RMWC.
 <TextField name="name" withLeadingIcon="search" />
  1. Un-assigned props This props should put at the end of the assigned props or should assign true or false.
 // Put un-assigned props at the end of the assigned props
 <TextField name="name" placeholder="Name" textarea fullWidth />

 // Use un-assigned props with true or false
 // In this case we can use un-assign props at a any postion of the component
 <TextField name="name" textarea="true" placeholder="Name" />

HelperText

Prop helpertext attribute should be lowercase 'helpertext'

 <TextField name="name" helpertext="Type your name" />

DateField

v1.9 In order to remove default text/placeholder present in html5 input element of type=date (WebKit only), use this CSS segment

input::-webkit-datetime-edit{ color: transparent; }
input:focus::-webkit-datetime-edit{ color: #000; }

ErrorField

This component is generated from TextFieldHelper rmwc component. If you need to use helper text with ErrorField for a specific field, you should pass helperText prop to the labeled ErrorField

<ErrorField name="Name" helperText="Hello from helper text..." />

SubmitField

SubmitField are generated from Bottons. Submit button value could be pass through the value prop. ButtonIcon 'use' prop should be use as buttonIcon (prop) in SubmitField component.

<SubmitField value="Submit" buttonIcon="favorite" />

BoolField

BoolField are generated from CheckBoxes. If you need to use indeterminate prop, you should assign true string instead of javascript true value or just put indeterminate prop.

<BoolField name="bool" indeterminate="true" />

SelectField

Read more about option patterns : https://jamesmfriedman.github.io/rmwc/select-menus

ListAddField

To change Add button text pass 'placeholder' prop with your text to the component. To change Icon pass 'buttonIcon' prop with icon name to the component.

ListDelField

To change Remove button text pass 'placeholder' prop with your text to the component. To change Icon pass 'buttonIcon' prop with icon name to the component.

Tasks

  • Autofield/form
  • BaseForm
  • BoolField
  • DateField
  • ErrorField
  • ErrorsField
  • Helpertext
  • HiddenField
  • ListFields
  • LongTextField (Removed)
  • NestedField
  • NumberField
  • QuickForm
  • RadioField
  • SelectField
  • SubmitField
  • TextField
  • TimeField
  • ValidationForm
  • ValidationQuickForm

For more in depth documentation see: https://github.com/vazco/uniforms/.

2.1.1

5 years ago

2.0.4

5 years ago

1.2.1

5 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.0.0

6 years ago