0.300.1 • Published 9 months ago

@holochain-open-dev/elements v0.300.1

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

@holochain-open-dev/elements

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

Elements

HoloIdenticon

Import it like this:

import "@holochain-open-dev/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 "@holochain-open-dev/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 "@holochain-open-dev/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 '@holochain-open-dev/elements';

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

9 months ago

0.400.0-dev.1

10 months ago

0.400.0-dev.2

9 months ago

0.300.0

12 months ago

0.300.1

11 months ago

0.300.0-rc.2

1 year ago

0.300.0-rc.1

1 year ago

0.300.0-rc.0

1 year ago

0.300.0-rc.3

1 year ago

0.400.0-dev.0

1 year ago

0.300.0-dev.1

1 year ago

0.300.0-dev.0

1 year ago

0.8.4

2 years ago

0.7.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.6.0

2 years ago

0.3.9

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.3

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.0.3

3 years ago

0.1.1

2 years ago

0.0.2

3 years ago

0.1.4

2 years ago

0.0.5

3 years ago

0.1.3

2 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.1.5

2 years ago

0.0.6

3 years ago

0.0.1

3 years ago