0.1.1-alpha.2 • Published 3 years ago
@pollenapp/pollen v0.1.1-alpha.2
pollen
Using Pollen in the browser directly
- Add the script to your page head:
<script async src="https://unpkg.com/@pollenapp/pollen@1/umd/recommendations.js"></script>- Add the
pollen-recommendationselement to your HTML:
<pollen-recommendations
title="Other apps we think you'll like"
publishable-key="pk_NVQImF9vxxwrPVGSpDLqw9Ep"
/>Using Pollen as a module
import { loadRecommendations } from '@getpollen/pollen'
loadRecommendations() // this defines the custom elements in the registryor
import { Recommendations } from '@getpollen/pollen'
customElements.define('pollen-recommendations', Recommendations)You should then add the pollen-recommendations element to the DOM as above.
0.1.1-alpha.2
3 years ago
0.1.1-alpha.1
3 years ago
0.1.0-alpha.5
3 years ago
0.1.0-alpha.4
3 years ago
0.1.0-alpha.3
3 years ago
0.1.0-alpha.2
3 years ago
0.1.0-alpha.1
3 years ago