1.0.0 • Published 8 years ago

@f/input-attrs v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

input-attrs

Build status Git tag NPM version Code style

List of valid HTML5 attributes for an input element

Installation

$ npm install @f/input-attrs

Usage

var inputAttrs = require('@f/input-attrs')

function render ({props}) {
  const containerProps = omit(inputAttrs, props)
  const inputProps = pick(inputAttrs, props)

  return (
    <div class='input-container' {...containerProps}>
      <input class='input' {...inputProps} />
    </div>
  )
}

License

MIT