0.20.0 • Published 3 years ago

@clinq/web-components v0.20.0

Weekly downloads
51
License
MIT
Repository
github
Last release
3 years ago

CLINQ Web Components :art:

Basic UI elements as web components used in CLINQ apps.

We will not provide support for this software. Use at your own risk.

Installation

npm i @clinq/web-components

Example

<!DOCTYPE html>
<html lang="en">
  <!-- Your custom element -->
  <my-element></my-element>

  <!-- "my-element" component implementation -->
  <script type="module">
    import "https://unpkg.com/@clinq/web-components?module";
    import { LitElement, html } from "https://unpkg.com/lit-element?module";

    class MyElement extends LitElement {
      handleClick() {
        alert("Hello, World!");
      }

      render() {
        return html`
          <clinq-button @click=${this.handleClick} variant="link">
            Click me!
          </clinq-button>
        `;
      }
    }

    customElements.define("my-element", MyElement);
  </script>
</html>

Development

Do not export anything! Otherwise npm link of other packages using this package will result in multiple registration of components. This is a pure component library.

License

MIT

0.20.0

3 years ago

0.19.2

4 years ago

0.19.1

4 years ago

0.19.0

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.3

4 years ago

0.16.4

4 years ago

0.16.5

4 years ago

0.16.2

4 years ago

0.16.1

4 years ago

0.16.0

4 years ago

0.15.11

4 years ago

0.15.4

4 years ago

0.15.5

4 years ago

0.15.6

4 years ago

0.15.7

4 years ago

0.15.8

4 years ago

0.15.9

4 years ago

0.15.10

4 years ago

0.15.3

4 years ago

0.15.0

4 years ago

0.15.1

4 years ago

0.15.2

4 years ago

0.14.0

4 years ago

0.12.0

4 years ago

0.13.0

4 years ago

0.13.1

4 years ago

0.13.2

4 years ago

0.11.5

4 years ago

0.11.4

4 years ago

0.11.3

4 years ago

0.11.0

4 years ago

0.11.1

4 years ago

0.11.2

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago