0.1.9 • Published 3 months ago

@mpen/react-basic-inputs v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

react-basic-inputs

Thin wrappers around native input elements to make them behave better.

Installation

yarn add @mnpenner/react-basic-inputs
# or
npm install @mnpenner/react-basic-inputs

Links

Components

Select

Like <select> but takes an options prop instead of children.

  • The values are typed; they can be anything, not just string
  • Duplicate values are OK. e.g. if you want to put "United States" at the top of your country list and then again in alphabetical order, it will just work
  • Each <option> will automatically be assigned a unique React key
  • If the current value cannot be found in the list of options it will be appended to the end
    • If you want to override this behavior, set invalidValueOption
  • placeholder prop
0.1.8

3 months ago

0.1.9

3 months ago

0.1.7

3 months ago

0.1.4

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.1.3

3 months ago

0.1.2

3 months ago