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

@eitje/form-fields-web

v2.0.0-alpha.3

Published

Beautiful & feature-packed form fields for the web

Downloads

170

Readme

Great fields, to be used together with eitje-app/forms

General props

These props are shared by every field

| Key | Explanation | Default value | | ------------- |:-------------:| -----:| | field | name of the field in formData, will also be used for validations | | | name | More granular control: validation will first look for the name prop before looking for the field prop. This way you can have different validations for the same field in different places | | | required | is this field required for submitting? | false | | validate | Custom validation function with (formData, field) as arguments | | | validateMessage | Custom validation message | | | disabled | disabled can be a bool or a function that takes formData as first argument | | | label | label to be rendered alongside the field. This can be either a string, React node or a function. In case of a function, all element props will be passed to the label | p tag with name OR field. | | labelStyle | style to be applied to the default label (NOTE: does only work if you pass nothing or a string) | {} | | labelVisible | hides the label when true | false | | style | style to be applied to the form element | {} | | namespace | namespace to put its serialized data into (useful for creating nested data structures) | | | containerStyle | style object to be applied to the container | {} | | containerProps | props object to be applied to the container | {} | | Container | override container component altogether | div | | disabledStyle | style to be applied to the container when the field is disabled | {opacity: 0.2} | | readOnly | disables the input but does not apply disabled styling | false | | submitStrategy | the strategy to submit this field, can either be blur, change or inlineButton (spawns a button next to the input for user confirmation). If left open field can only be submitted through the form. NOTE: submitStrategy only submits the field being changed | null

Input

Simple text input

| Key | Explanation | Default value | | ------------- |:-------------:| -----:| | secure | if true renders a secure password input | false |

Dropdown picker

Renders an antd dropdown picker

| Key | Explanation | Default value | | ------------- |:-------------:| -----:| | items | array of objects to be selected from | [] | | valueField | The property that you want to use as value | id | | labelField | The property that you want to use as label | false | | noSort | Do not sort alphabetically | false | | modifyItems | map function ran after dropdown picker converts the items into pickerItems, useful for adding an irregular option | | | showSearch | allow users to search this picker | false | | multiple | is multiple selection allowed? | false | | innerClass | className for the inner antd element | |

Date picker

| Key | Explanation | Default value | | ------------- |:-------------:| -----:| | innerClass | className for the inner antd elemtn | |

Switch

No extra props