All Projects → vardius → web-component

vardius / web-component

Licence: MIT license
Lightweight library providing interface for building web components

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to web-component

cwco
Powerful and Fast Web Component Library with a Simple API
Stars: ✭ 27 (-27.03%)
Mutual labels:  web-component, webcomponents, web-components
vaadin-select
Customizable Web Component similar to a native browser select. Part of the Vaadin components.
Stars: ✭ 18 (-51.35%)
Mutual labels:  webcomponents, web-components
webcomponents.dev
Web Components IDE
Stars: ✭ 51 (+37.84%)
Mutual labels:  webcomponents, web-components
smart-custom-element
Smart a lightweight web component library that provides capabilities for web components, such as data binding, using es6 native class inheritance. This library is focused for providing the developer the ability to write robust and native web components without the need of dependencies and an overhead of a framework.
Stars: ✭ 17 (-54.05%)
Mutual labels:  webcomponents, web-components
Html Midi Player
🎹 Play and display MIDI files on the web
Stars: ✭ 158 (+327.03%)
Mutual labels:  web-component, web-components
Vaadin Date Picker
The Web Component providing a date selection field with scrollable month calendar. Part of the Vaadin components.
Stars: ✭ 158 (+327.03%)
Mutual labels:  web-component, webcomponents
smart-webcomponents-community
Material & Bootstrap Web Components built with Smart
Stars: ✭ 30 (-18.92%)
Mutual labels:  webcomponents, web-components
Vaadin Upload
The Web Component for uploading multiple files with progress indication. Part of the Vaadin components.
Stars: ✭ 87 (+135.14%)
Mutual labels:  web-component, webcomponents
symbiote.js
Simple, light and very powerful library to create embedded components for any purpose, with a data flow management included.
Stars: ✭ 40 (+8.11%)
Mutual labels:  webcomponents, web-components
modulor-html
Missing template engine for Web Components
Stars: ✭ 36 (-2.7%)
Mutual labels:  webcomponents, web-components
vaadin-dialog
High quality web component for modal dialogs. Part of the Vaadin platform.
Stars: ✭ 15 (-59.46%)
Mutual labels:  web-component, webcomponents
Ion Phaser
A web component to use Phaser Framework with Angular, React, Vue, etc 🎮
Stars: ✭ 152 (+310.81%)
Mutual labels:  web-component, web-components
Vaadin Combo Box
The Web Component for displaying a list of items with filtering. Part of the Vaadin components.
Stars: ✭ 113 (+205.41%)
Mutual labels:  web-component, webcomponents
web-components
A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
Stars: ✭ 322 (+770.27%)
Mutual labels:  webcomponents, web-components
Calcite Components
Web Components for the Calcite Design System. Built with Stencil JS. Currently in Beta!
Stars: ✭ 96 (+159.46%)
Mutual labels:  web-component, webcomponents
aurum
Fast and concise declarative DOM rendering library for javascript
Stars: ✭ 17 (-54.05%)
Mutual labels:  webcomponents, web-components
lego
🚀 Web-components made lightweight & Future-Proof.
Stars: ✭ 69 (+86.49%)
Mutual labels:  webcomponents, web-components
Vaadin Charts
Vaadin Charts is a feature-rich interactive graph library that answers the data visualization needs of modern web applications
Stars: ✭ 47 (+27.03%)
Mutual labels:  web-component, web-components
Use Custom Element
Custom hook to bridge Custom Elements (Web Components) to React.
Stars: ✭ 77 (+108.11%)
Mutual labels:  web-component, web-components
vaadin-board
Web Component for creating flexible responsive layouts and building nice looking dashboards.
Stars: ✭ 17 (-54.05%)
Mutual labels:  web-component, web-components

web-component

Build Status codecov npm version npm downloads license

Lightweight library providing interface for building web components.

Contribution

Is web-component library missing something ?

No problem! Simply fork this repository, add middleware and create pull request.

Installation

npm install --save web-component

Documentation

Package provides a decorator function that allows you to:

  • easy define Custom Elements
  • styling a custom element
  • creating elements from a template
  • encapsulate style and markup using Shadow DOM
  • extending other custom elements or even the browser's built-in HTML
import { WebComponent } from 'web-component'

@WebComponent('hello-world', {
  template: require('./hello-world.html'),// provide template
  styles: require('./hello-world.css'), //provide styles
  extends: 'button', //default does not extends any
  shadowDOM: true, //default false
  mode: "open" // default open, set to closed to block access to shadowDOM
})
export class HelloWorld extends HTMLElement {}

If shadowDOM option is set to true then template and styles will be attached to shadowRoot. If there is no shadowRoot, it will be created with mode open.

  1. Hello World Example
  2. web-components-webpack-es6-boilerplate

License

The code is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].