1.1.1 • Published 5 years ago
textbox-placeholder v1.1.1
textbox-placeholder
Textbox component with placeholder to value for React
Why should I use it?
Use it and placeholder be your default value for your textbox! Also now you can use it for textarea.
Install
$ npm install textbox-placeholder
Usage
for Textbox
import TextBoxPlaceholder from 'textbox-placeholder'
<TextBoxPlaceholder
component="TextBox"
name="text-box"
inputClass={className}
value={value}
placeholder={placeholder} />
for Textarea
import TextareaPlaceholder from 'textbox-placeholder'
<TextareaPlaceholder
component="Textarea"
name="textarea"
inputClass={className}
value={value}
placeholder={placeholder} />