copy-input
Render an input that auto-selects and copies when clicked
Install
$ npm install --save copy-input
Usage
var CopyInput = var state = var options = style: background: 'blue' value: 'copy me!'CopyInput//=> ...//=> renders blue readonly input that copies itself when clicked
API
CopyInput()
-> function
Returns an observable value representation (state
).
CopyInput.render(state, options)
-> object
Renders the copy input to a vtree. options.value
is displayed in the input field.
License
MIT © Ben Drucker