platformalert

Alert UI

Usage no npm install needed!

<script type="module">
  import platformalert from 'https://cdn.skypack.dev/platformalert';
</script>

README

plarfome-alert

Install

npm install platform-alert

Use

<platform-alert
  orientation="left [right]"
  socket-url="wss://echo.websocket.org"
  theme="dark [soft]"
  public-key="your public key"
></platform-alert>

Orientation : Orientation decides the direction of detail popup placement relative to alert icon. Default is "right". Possible values - ["left", "right"]

socket-url : Alert component usaes socket to pull the data. Provie correct wss url.

public-key : Provide public key if any to associate wss pull message.

theme : Alert supports two theme "soft" and "dark". Default theme is "soft".