@clinq/web-components
TypeScript icon, indicating that this package has built-in type declarations

0.20.0 • Public • Published

CLINQ Web Components 🎨

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

Readme

Keywords

Package Sidebar

Install

npm i @clinq/web-components

Weekly Downloads

67

Version

0.20.0

License

MIT

Unpacked Size

105 kB

Total Files

63

Last publish

Collaborators

  • lauravikanis
  • fgladisch
  • fuglu
  • alphabetapeter
  • leonerath
  • tamerxkilinc
  • nightillusions
  • wo-ist-henry
  • chingucoding