0.2.0 • Published 7 months ago

@safehello/web-elements v0.2.0

Weekly downloads
-
License
LicenseRef-LICENS...
Repository
-
Last release
7 months ago

SafeHello - Web Elements

Use this library to render SafeHello screens in your Website or WebView.

Usage

1 - Installing library

npm install @safehello/web-elements

2 - Loading assets

<head>
  <link rel="stylesheet" href="node_modules/@safehello/web-elements/safehello-elements.css" />
  <script src="node_modules/@safehello/web-elements/safehello-elements.js"></script>
</head>

3 - Using components

<body>
  <safehello-host user-id="xxx" event-id="xxx" user-token="xxx">
    <safehello-escrow slot="escrow"></safehello-escrow>
    <safehello-signal slot="signal"></safehello-signal>
    <safehello-mark slot="mark"></safehello-mark>
    <safehello-verified slot="verified"></safehello-verified>
  </safehello-host>
</body>

4 - Listening to Event changes (Optional)

const element = document.querySelector('safehello-host');
element.addEventListener('eventChanged', ev => {
  // Handle event updates.
});
0.2.0

7 months ago

0.1.3

8 months ago

0.1.0

1 year ago

0.1.2

11 months ago

0.1.1

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago