This is a React component for displaying a PAN card and Aadhaar card.
-
Install the component:
npm install git+https://github.com/settle-finance/identity-card-component.git
-
Import the
PanCard
component in your project:import { PanCard } from "identity-card"; import "identity-card/dist/styles.css"
-
Use the
PanCard
component in your application:function App() { return ( <div className="App"> <PanCard name="John Doe" number="CWACM5036P" /> </div> ); } export default App;
Here's an example output of the PAN card component:
-
Import the
AadhaarCard
component in your project:import { AadhaarCard } from "identity-card"; import "identity-card/dist/styles.css"
-
Use the
AadhaarCard
component in your application:function App() { return ( <div className="App"> <AadhaarCard name="John Doe" dob="09/07/2000" gender="Male" number="XXXX XXXX 5555" image="https://images.unsplash.com/photo-1566753323558-f4e0952af115?q=80&w=1921&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" address="205 B Wing Niwas House, MIDC Road" area="Andheri" district="Mumbai" state="Maharashtra" pincode="400072" color='crimson' //optional /> </div> ); } export default App;
-
To change the color of pagination circles use
color
prop. By default it is set toblue
color.
Here's an example output of the Aadhaar card component: