textbox-placeholder

1.1.1 • Public • Published

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

/textbox-placeholder/

    Package Sidebar

    Install

    npm i textbox-placeholder

    Weekly Downloads

    2

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    16.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • aslihanozfidan