clef-button-component
A React components to use the Clef button
Installation
Install it via npm:
npm install clef-button-component
Usage
import ClefButton from 'clef-button-component';
<ClefButton
appID={React.PropTypes.string.isRequired}
redirectURL={React.PropTypes.string.isRequired}
state={React.PropTypes.string.isRequired}
color={React.PropTypes.string}
type={React.PropTypes.string}
custom={React.PropTypes.bool}
embed={React.PropTypes.bool}
onError={React.PropTypes.func.isRequired}
onSuccess={React.PropTypes.func}
/>
For more information on the different properties, check out the documentation.
Development
To start development, run:
git clone git@github.com:clef/clef-button-component.git clef-button-component
cd clef-button-component
npm install
npm run test
License
MIT