@voxgig/podw-next
v1.0.8
Published
Next.js wrapper to use the Podmind widget
Downloads
6
Readme
Next.js Podmind Widget
Install
- In your app root directory, run:
npm i @voxgig/podw-next
- After the package is installed, import and add the lib component similar to the following:
'use client'
import PodW from '@voxgig/podw-next'
export default function YourComponent() {
return (
<PodW apikey="your-api-key" />
);
}
- You must pass the following prop:
apikey
- The API key provided by Voxgig.
- Highliting the use of the
'use client'
directive from React.
Debugging
- To log widget properties, you can pass the prop
debug
to the lib component:
<PodW
apikey="your-api-key"
debug="true"
/>
- Resulting in a log similar to the following:
apikey: "your-api-key"
debug: true
mark: "20i1a7d5"