0.400.2 • Published 3 months ago

@tnesh-stack/elements v0.400.2

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

@tnesh-stack/elements

Common elements and element related utilities to build Holochain web applications.

Elements

HoloIdenticon

Import it like this:

import "@tnesh-stack/elements/dist/elements/holo-identicon.js";

And then you can use it like this in your html:

<holo-identicon
  hash="uhCEkBsnnW9JSVhGQx4AE2m0lSlWLrioEHP-7Uj4ZnbI0W-M"
></holo-identicon>

DisplayError

Import it like this:

import "@tnesh-stack/elements/dist/elements/display-error.js";

And then you can use it like this in your html:

<display-error headline="Error fetching data" error="500"></display-error>

SelectAvatar

Import it like this:

import "@tnesh-stack/elements/dist/elements/select-avatar.js";

And then you can use it like this in your html:

<select-avatar></select-avatar>

Utils

wrapPathInSvg

Function to convert paths from the @mdi/js library to inline SVG sources.

Example usage:

import { mdiAlertCircleOutline } from "@mdi/js";
import { wrapPathInSvg } from '@tnesh-stack/elements';

function  renderIcon() {
  return html`
    <sl-icon
      style="color: red; height: 64px; width: 64px;"
      src="${wrapPathInSvg(mdiAlertCircleOutline)}"
    ></sl-icon>
  `;
}
0.400.2

3 months ago

0.400.1

5 months ago

0.400.0

6 months ago

0.400.0-rc.1

7 months ago

0.300.4

7 months ago

0.300.5

7 months ago

0.300.3

7 months ago

0.300.2

7 months ago

0.400.0-rc.0

7 months ago

0.300.1

7 months ago

0.300.0

7 months ago