Usage in Astro
To use the component in Astro, you can use the CDN or install it as a dependency.
Using with CDN
Place the following script in the head of your Astro page.
Now, you can use the component in your Astro page.
Usage as Package
Follow the Installation guide and install the package.
After installing inside your page file add below <script>
tag
You can add a <script>
tag in your layouts file as well so you don’t have to manually add <script>
tag to every page.
Usage in MDX files
To use it inside a MDX file you have to create a separate Astro component and add a <script>
tag there to load package.
And import component where you are using it.