1.0.4 • Published 2 years ago

@getoverflow/overflow-button v1.0.4

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

overflow-button

overflow-button is a React component that allows you to embed Overflow into your application to facilitate stock gifts to non-profit organizations.

Installation

To install the overflow-button library, run

npm i @getoverflow/overflow-button --save

Example

import  OverflowButton  from  '@getoverflow/overflow-button';

export default class OverflowButtonExample extends React.Component {
	render() {
		return(
			<OverflowButton
				className="some-class"
				identifier="publicKey"
				env="production"
				onComplete={() => console.log("Do something")}
			>
				Give Through Overflow
			</OverflowButton>
		)
	}
}

Props

// You can customize the Overflow button component however you like using the standard className prop
className: PropTypes.string,

// The non-profit identifier provided by partner organization
identifier: PropTypes.string.isRequired

// For development and testing, use "demo". For production use, use "production".
env: PropTypes.string // default is "demo"

//Callback function to call when the Overflow flow is complete
onComplete: PropTypes.func,

//The child is the title of the button
children: PropTypes.string.isRequired
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago