swissarmy-input

0.0.1 • Public • Published

Swiss-Army Input v0.0.1

Description

The "swissarmy-input" library is intended to provide useful and nice-looking inputs, complete with labels. The power of "swissarmy-input" is that it takes an interchangeable set of properties and takes care of any discrepancies between creating different types of inputs.

It currently supports text-, number-, select- and date-inputs, with more on the horizon.

Screenshots

Install

npm install swissarmy-input

Use

[Coming...]

The properties map to corresponding attributes of the input- or label-elements, but provide extended functionality in the case of the type-property:

The type-property will normally pass a string value to the type-attribute of the input-element, but if passed value is "date" or "select", then a datepicker-/select box-widget is initialized instead.

Todo

  • Live indicator for remaining characters (if maxLength-value is provided)
  • Support more input-types
  • Support for specifying date-format

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i swissarmy-input

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • persille