@financial-times/spark-push-notification

Spark push notification component

Usage no npm install needed!

<script type="module">
  import financialTimesSparkPushNotification from 'https://cdn.skypack.dev/@financial-times/spark-push-notification';
</script>

README

spark-push-notification

This repo abstract away the code required for spark push notification so that functionality can be shared across the spark estate

This repo has a storybook. To run it locally you can run yarn workspace @financial-time/spark-push-notification storybook

How to use

yarn add @financial-times/spark-push-notification // with yarn
npm i @financial-times/spark-push-notification // with npm

and use it like:

import { PushButtonWithOverlay, PushButton } from @financial-times/spark-push-notification

<PushButtonWithOverlay articleId={articleStore.articleId}>
            <Button data-trackable="send-push">
                Send push
            </Button>
</PushButtonWithOverlay>

Development

This repo uses lerna under the hood for the publication flows. It also uses yarn workspaces to manage packages internally.

Bootstrap

see README

How to create a new package

see README

How to add a dependency to an existing package

see README

How to publish

see README