Docusaurus Podmind Widget
- In your app root directory, run:
npm i @voxgig/podw-docusaurus
- After the package is installed, import and add the lib component similar to the following:
import PodW from '@voxgig/podw-docusaurus'
import Head from '@docusaurus/Head';
export default function YourComponent() {
return (
<PodW
Head={Head}
apikey="your-api-key"
/>
);
}
- You must pass the following props:
-
Head
- Docusaurus Head built-in component.
-
apikey
- The API key provided by Voxgig.
- To log widget properties, you can pass the prop
debug
to the lib component:
<PodW
Head={Head}
apikey="your-api-key"
debug="true"
/>
- Resulting in a log similar to the following:
apikey: "your-api-key"
debug: true
mark: "20e1a7d5"