1.1.1 • Published 5 years ago

textbox-placeholder v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

textbox-placeholder

npm (scoped) npm (scoped)

Textbox component with placeholder to value for React

image image

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} />