React package for Pinwheel modal
npm install --save @pinwheel/react-modal
import PinwheelModal from '@pinwheel/react-modal'
const App = () => {
return <PinwheelModal
open={true}
linkToken={token}
onEvent={console.log}
/>
}
All available React props are listed here.
Please consult our docs for more information.
You may want to explore the usage of the modal locally.
Start by going to the developer dashboard to create a token. Copy the token string. Then
# Build the @pinwheel/react-modal package
npm i
npm run build
# Run the example app
cd example
npm i
npm start
# Go to localhost:9000?token=<PASTE YOUR GENERATED TOKEN HERE>
MIT © Pinwheel React Modal is available under the MIT license. See the LICENSE file for more info.