- In your app root directory, run:
- 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.
- 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"