react-linkedin-autofill
v0.0.18
Published
linked in autofill component for react
Downloads
22
Readme
React LinkedIn Auto fill
A Linked In Auto fill Component for React
Storybook
Install
npm install react-linkedin-autofill
or
yarn add react-linkedin-autofill
How to use
Include linkedIn autofill javascript library in your page
<script src="https://www.linkedin.com/autofill/js/autofill.js" async="async">{``}</script>
import React from 'react';
import ReactDOM from 'react-dom';
import LinkedInAutofill from 'react-linkedin-autofill';
ReactDOM.render(
<LinkedInAutofill
onChangeCallback={(fieldId, value)}
/>,
document.getElementById('linkedInAutofillButton')
);
onChangeCallback callback
When a field is filled by linkedIn, this callback will gets triggered whith the fieldId and value.
Props
| params | value | default value | description | |:-----------------:|:--------:|:------------------------------------:|:----------------:| | onChangeCallback | function | REQUIRED | |
List of field IDs in the callback function | field id | |:-----------:| | firstName | | lastName | | email | | phone | | company | | country | | state | | zipCode | | jobTitle |