react-card-preview
v1.0.0
Published
React credit card preview component
Downloads
89
Readme
react-card-preview
React credit card preview component
Install
npm install --save react-card-preview
Usage
import * as React from 'react';
import ReactCardPreview from 'react-card-preview';
class MyComponent extends React.Component {
render () {
return (
<ReactCardPreview
name="Tom Jones"
brand="mastercard"
expiry="11/23"
cvc="112"
lastFourDigits="4242"
/>
);
}
}
Props
License
MIT © 10chars