This package has been deprecated

Author message:

This has been moved to https://www.npmjs.com/package/@aller/svelte-components

@aller/cyclops-frontend-svelte
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

@aller/cyclops-frontend-svelte

Contains the newsletter-injection

Usage

import { injectNewsletter } from '@aller/cyclops-frontend-svelte'

const newsletter = injectNewsletter('newsletter', {
  tags: string[],
  site: string,
  newsletterId: number,
})

Optional hiding/showing outside of the package

document.getElementById('newsletter-button')?.addEventListener('click', () => {
  if (!newsletter.hidden()) {
    newsletter.hide()
  } else {
    newsletter.show()
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @aller/cyclops-frontend-svelte

Weekly Downloads

15

Version

2.1.2

License

ISC

Unpacked Size

212 kB

Total Files

8

Last publish

Collaborators

  • toremeek
  • aslak2800
  • roninjc
  • mariusjn
  • lobunto
  • konrad-j
  • oyvigri
  • goodleby
  • jimoe
  • vnorvik
  • kevinmidboe