1.0.11 • Published 4 months ago

@zanichelli/zanichelli-toolbox v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Zanichelli logo

Zanichelli Toolbox Web Components Library

Zanichelli's components for tools application

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 icon="rectangle" />
</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 icon="rectangle" />, 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 development http://localhost:3333

Storybook:

# Start Storybook
yarn storybook

for live reloading of edits in stories:

# Start Storybook
yarn storybook watch
1.1.0

4 months ago

1.0.12

4 months ago

1.0.11-RC2

5 months ago

1.0.11-RC3

5 months ago

1.0.11-RC4

5 months ago

1.0.10-RC1

5 months ago

1.0.11

5 months ago

1.0.10

6 months ago

1.0.9

8 months ago

1.0.9-RC5

8 months ago

1.0.9-RC4

8 months ago

1.0.9-RC1

8 months ago

1.0.9-RC3

8 months ago

1.0.9-RC2

8 months ago

1.0.8

9 months ago

1.0.8-rc1

9 months ago

1.0.7

10 months ago

1.0.6-rc8

11 months ago

1.0.6-rc7

11 months ago

1.0.6-rc6

11 months ago

1.0.6-rc5

11 months ago

1.0.6-rc4

11 months ago

1.0.6-rc3

11 months ago

1.0.6-rc2

11 months ago

1.0.6-rc1

11 months ago

1.0.6-rc11

11 months ago

1.0.6-rc13

11 months ago

1.0.6-rc12

11 months ago

1.0.6

11 months ago

1.0.5

12 months ago

1.0.5-rc3

12 months ago

1.0.5-rc1

12 months ago

1.0.5-rc2

12 months ago

1.0.4

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.3

12 months ago

1.0.4-RC

12 months ago

1.0.2-RC

1 year ago

1.0.0

1 year ago

0.0.28-RC

1 year ago

0.0.27-RC

1 year ago

0.0.26-RC

1 year ago

0.0.25-AC

1 year ago

0.0.24-RC

2 years ago

0.0.23-RC

2 years ago

0.0.22-RC

2 years ago

0.0.21-RC

2 years ago

0.0.20-RC

2 years ago

0.0.29-Popover

2 years ago

0.0.19-RC

2 years ago

0.0.18-RC

2 years ago

0.0.17-RC

2 years ago

0.0.16-RC

2 years ago

0.0.15-RC

2 years ago

0.0.14-RC

2 years ago

0.0.13-RC

2 years ago

0.0.12-RC

2 years ago

0.0.11-RC

2 years ago

0.0.10-RC

2 years ago

0.0.9-RC1

2 years ago

0.0.9-RC

2 years ago

0.0.8-RC2

2 years ago

0.0.8-RC

2 years ago

0.0.7-RC2

2 years ago

0.0.7-RC1

2 years ago

0.0.7-RC

2 years ago

0.0.6-RC1

2 years ago

0.0.6-RC

2 years ago

0.0.5-RC

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2-RC4

2 years ago

0.0.2-RC3

2 years ago

0.0.2-RC2

2 years ago

0.0.2-RC1

2 years ago

0.0.2-RC

2 years ago

0.0.2-6129-test

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago