Skip to content

GabriFedi/is-web-component

 
 

Repository files navigation

Is-Web-Component

Built With Stencil Netlify Status Downloads Version Published on webcomponents.org License

Open source web components for building web applications. Build on top StencilJS.

Installation

You can install using NPM:

npm i is-web-component --save

You can install using unpkg cdn:

https://unpkg.com/is-web-component

Usage

Script tag

  • Put a script tag similar to this

      <script src="https://unpkg.com/[email protected]/dist/is-web-component.js"></script>

    in the head of your index.html

  • Then you can use the element anywhere in your template, JSX, html etc.

      <h3>is-badge</h3>
      <is-badge text="is-badge" rounded></is-badge>
    
      <h3>is-multiselect</h3>
      <is-multiselect id="select"></is-multiselect>
    
      <script>
        var select = document.getElementById("select");
        var data = [{
          id: 1,
          name: 'Data 1'
        }, {
          id: 2,
          name: 'Data 2'
        }, {
          id: 3,
          name: 'Data 3'
        }];
        select.items = data;
      </script>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Components

About

Web Components build with StencilJs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 45.6%
  • CSS 27.8%
  • HTML 26.3%
  • JavaScript 0.3%