@pollenapp/pollen

0.1.1-alpha.2 • Public • Published

pollen

Using Pollen in the browser directly

  1. Add the script to your page head:
<script async src="https://unpkg.com/@pollenapp/pollen@1/umd/recommendations.js"></script>
  1. Add the pollen-recommendations element 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 registry

or

import { Recommendations } from '@getpollen/pollen'
customElements.define('pollen-recommendations', Recommendations)

You should then add the pollen-recommendations element to the DOM as above.

Readme

Keywords

none

Package Sidebar

Install

npm i @pollenapp/pollen

Weekly Downloads

19

Version

0.1.1-alpha.2

License

See LICENSE.md

Unpacked Size

232 kB

Total Files

5

Last publish

Collaborators

  • pollenapp