npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uniforms-rmwc

v2.1.1

Published

React wrapper Material Design (Web) Components for uniforms.

Downloads

30

Readme

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

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

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