React package for Pinwheel modal
npm install @pinwheel/react-modal> React package for Pinwheel modal
 
``bash`
npm install --save @pinwheel/react-modal
`jsx
import PinwheelModal from '@pinwheel/react-modal'
const App = () => {
return
}
`
In order to utilize the pinwheel iframe with the security policies enforced. (Recommended for production)
`jsx
import PinwheelModal from '@pinwheel/react-modal'
const App = () => {
return (
useSecureOrigin
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 customer dashboard to create a token. Copy the token string. Then
`sh``Build the @pinwheel/react-modal package
npm i
npm run buildRun the example app
cd example
npm i
npm startGo to localhost:9000?token=
MIT ©
Pinwheel React Modal is available under the MIT license. See the LICENSE file for more info.