A React component that bootstraps Eventbrite's popup checkout widget.
Note: Popup will only trigger if your app is served with HTTPS. Otherwise a new window is opened that links to your Eventbrite event page.
If using NPM:
$ npm install react-eventbrite-popup-checkout --save
If using Yarn:
$ yarn add react-eventbrite-popup-checkout
import React from 'react';
import EventbriteButton from 'react-eventbrite-popup-checkout';
class MyApp extends React.Component {
render() {
return (
<div>
<EventbriteButton ebEventId='12555555'>Checkout</EventbriteButton>
</div>
);
}
}
ebEventId: <string>
className: <string>
ebScriptPath: <string>
isModal: <boolean>
onOrderComplete: <function>
onClick: <function>
component: <node>
componentProps: <shape>
Pass an optional onClick
function to process the click event before the Eventbrite widget gets fired (e.g., for analytics).
Specify what component to use (e.g., a custom <Button />
). Defaults to plain HTML button. Note: if using a custom component, it must accept an id
prop.
Props to pass to your custom component.