@ubc-farm/react-inputs

2.0.0 • Public • Published

@ubc-farm/react-inputs

Various inputs for use inside forms. The API is similar to normal <input /> elements, with value, onChange, and defaultValue props.

Field

A container for inputs that includes a corresponding label. Will auto-generate an ID for the input if no id is specified.

DateInput

A wrapper for <input type="date" /> that uses moment to represent the value instead of a string.

DateTimeInput

A wrapper for <input type="datetime-local" /> that uses moment to represent the value instead of a string.

MoneyInput

An input that translates money values typed by the user into a cents integer value.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    1
  • 1.1.1
    1
  • 1.1.0
    1
  • 1.0.1
    1

Package Sidebar

Install

npm i @ubc-farm/react-inputs

Weekly Downloads

4

Version

2.0.0

License

none

Last publish

Collaborators

  • notwoods
  • ubc-farm-team