1.0.5 • Published 2 years ago

card-payment-form v1.0.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Getting Started with Card Payment Form

Powerful, lightweight and fully customizable card payment component for React apps.

Available props

container, attr,placeholder,handleInputValue

DEMO

Link coming soon

Installing as a package

npm install card-payment-form

Usage

import { FormInput } from 'card-payment-form';

function App() {
  const handleInput = (value) => {
    console.log(value)
  }
  return (
    <div className="App">
      <header className="App-header">
        <div className="h-40 my-4 bg-white rounded-md">
          <FormInput attr="cpf-input" placeholder="5399 9089 1234 1970" handleInputValue={handleInput} />
        </div>
      </header>
    </div>
  );
}

export default App;

Props

NameValueDescription
containerstringclassName for outer div styling
attrstringclassName for input styling
placeholderstringAn example of what you expect from the user
handleInputValuefunctionlistening to event on the component

Customizing

By default, cpf-input is available as a default styling, it's optional.

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago