@f/input-attrs
v1.0.0
Published
List of valid attributes for an input element
Downloads
7
Readme
input-attrs
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