0.0.1 • Published 1 month ago

@zanichelli/zanichelli-toolbox v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Zanichelli logo

Zanichelli Toolbox Web Components Library

Descr

Installation

Download the package by running yarn add @zanichelli/zanichelli-toolbox

or import it in your html using Unpkg o jsDelivr:

// using jsDelivr
<script src="https://cdn.jsdelivr.net/npm/@zanichelli/zanichelli-toolbox/dist/web-components-library/web-components-library.esm.js"></script>

// using unpkg
<script src="https://unpkg.com/@zanichelli/zanichelli-toolbox/dist/web-components-library/web-components-library.esm.js"></script>

Remember to also include the stylesheet:

<link type="text/css" rel="stylesheet" href="https://unpkg.com/@zanichelli/zanichelli-toolbox/www/build/web-components-library.css" />

Using custom elements

import { defineCustomElements as defineToolboxComponents, applyPolyfills } from "@zanichelli/zanichelli-toolbox/loader";

applyPolyfills().then(() => {
  defineAlbeComponents(window);
});

Then use the relative tag as a usual component in your markup.

<section>
  <zt-button>Click me!</zt-button>
</section>

Using React bindings

import React from "react";
import ReactDOM from "react-dom";
import "@zanichelli/zanichelli-toolbox/www/build/web-components-library.css";
import { defineCustomElements as defineToolboxComponents, applyPolyfills } from "@zanichelli/zanichelli-toolbox/loader";
import { ZtButton } from "@zanichelli/zanichelli-toolbox/react";

applyPolyfills().then(() => {
  defineCustomElements(window);
});

ReactDOM.render(<ZtButton>Click me</ZtButton>, document.getElementById("root"));

Development

  • Download the repo using git clone git@bitbucket.org:zanichelli/zanichelli-toolbox.git
  • In the project's root folder, run yarn
  • yarn start to serve develpment http://localhost:3333å
1.0.0

1 month ago

0.0.28-RC

3 months ago

0.0.27-RC

3 months ago

0.0.26-RC

4 months ago

0.0.25-AC

4 months ago

0.0.24-RC

4 months ago

0.0.23-RC

5 months ago

0.0.22-RC

5 months ago

0.0.21-RC

5 months ago

0.0.20-RC

6 months ago

0.0.29-Popover

6 months ago

0.0.19-RC

6 months ago

0.0.18-RC

6 months ago

0.0.17-RC

7 months ago

0.0.16-RC

7 months ago

0.0.15-RC

7 months ago

0.0.14-RC

7 months ago

0.0.13-RC

7 months ago

0.0.12-RC

7 months ago

0.0.11-RC

7 months ago

0.0.10-RC

7 months ago

0.0.9-RC1

7 months ago

0.0.9-RC

7 months ago

0.0.8-RC2

7 months ago

0.0.8-RC

7 months ago

0.0.7-RC2

8 months ago

0.0.7-RC1

8 months ago

0.0.7-RC

8 months ago

0.0.6-RC1

8 months ago

0.0.6-RC

8 months ago

0.0.5-RC

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2-RC4

9 months ago

0.0.2-RC3

9 months ago

0.0.2-RC2

9 months ago

0.0.2-RC1

9 months ago

0.0.2-RC

9 months ago

0.0.2-6129-test

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago