Zanichelli's user notifications component
npm install @zanichelli/zanichelli-notificheUse this component to show notifications to users.
Download the package by running yarn add @zanichelli/zanichelli-notifiche
or import it in your html using Unpkg:
``html`
---
This component requires the Albe Web Components Library. To get Albe you can:
- install it via NPM by running yarn add @zanichelli/albe-web-componentsscript
- include it in your app inside a tag:
`html`
type="module"
src="https://cdn.jsdelivr.net/npm/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"
>
Remember to also include the stylesheet:
`html`
type="text/css"
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@zanichelli/albe-web-components/www/build/web-components-library.css"
/>
---
`jsx
import { defineCustomElements as defineAlbeComponents, applyPolyfills } from "@zanichelli/albe-web-components/loader";
import { defineCustomElements as defineZanichelliNotifiche } from "@zanichelli/zanichelli-notifiche/dist/wc/loader";
applyPolyfills().then(() => {
defineAlbeComponents();
defineZanichelliNotifiche();
});
return
`
---
- Download the repo using git clone git@bitbucket.org:zanichelli/laz-notifiche.gityarn
- Run yarn start
- Run
To use component from local (and to run cypress tests) the host must be dev-notifications.zanichelli.it:3333
- so add in your own file /etc/hosts 127.0.0.1 dev-notifications.zanichelli.it`