All Projects → glimmerjs → glimmer-web-component

glimmerjs / glimmer-web-component

Licence: MIT License
Library to boot up your Glimmer components as Web Components

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to glimmer-web-component

cwco
Powerful and Fast Web Component Library with a Simple API
Stars: ✭ 27 (-15.62%)
Mutual labels:  web-components
showroom
Universal development and automated test environment for web components
Stars: ✭ 89 (+178.13%)
Mutual labels:  web-components
elements
Lovingly crafted ui components based on web components. Works well with all Frameworks - including Angular, React and Vue.
Stars: ✭ 42 (+31.25%)
Mutual labels:  web-components
web-components-tutorial
HTML Web Component using Vanilla JavaScript
Stars: ✭ 38 (+18.75%)
Mutual labels:  web-components
bg-sound
Web Component to emulate the old-school <bgsound> HTML element
Stars: ✭ 93 (+190.63%)
Mutual labels:  web-components
social-button
Social Buttons as Web Components
Stars: ✭ 17 (-46.87%)
Mutual labels:  web-components
Fore
Fore - declarative programming with web components
Stars: ✭ 34 (+6.25%)
Mutual labels:  web-components
svelte-webcomponents
A ready-to-use project template to build custom elements (web components) with Svelte 3 with support and examples for web components, jest, sass, nested components with props, eslinting, stylelinting, Github actions, propagating custom events from shadow-DOM to real-DOM etc.
Stars: ✭ 22 (-31.25%)
Mutual labels:  web-components
bui
‹b› Web components for creating applications – built by Blackstone Publishing using lit-html and lit-element
Stars: ✭ 29 (-9.37%)
Mutual labels:  web-components
nuxeo-web-ui
New Nuxeo Web UI
Stars: ✭ 51 (+59.38%)
Mutual labels:  web-components
biotope-boilerplate
boilerplate.biotope.sh
Stars: ✭ 26 (-18.75%)
Mutual labels:  web-components
webcomponents-cg
Web Components community group
Stars: ✭ 89 (+178.13%)
Mutual labels:  web-components
PolymerProjects
An open list of projects using Polymer
Stars: ✭ 83 (+159.38%)
Mutual labels:  web-components
custom-elements-manifest
Custom Elements Manifest is a file format that describes custom elements in your project.
Stars: ✭ 81 (+153.13%)
Mutual labels:  web-components
web-components-loader
Webpack loader that makes it incredibly easy to import HTML-centric Web Components into your project.
Stars: ✭ 34 (+6.25%)
Mutual labels:  web-components
birdseye
Next generation component catalog
Stars: ✭ 41 (+28.13%)
Mutual labels:  web-components
belleui
Web Components UI library
Stars: ✭ 36 (+12.5%)
Mutual labels:  web-components
storify
Instagram/Whatsapp stories clone built on Web Components and Web Animations API. 🔥
Stars: ✭ 64 (+100%)
Mutual labels:  web-components
glimmer-blueprint
[MOVED] This package is now part of the Glimmer.js monorepo
Stars: ✭ 25 (-21.87%)
Mutual labels:  glimmerjs
outline
Outline is a web component based design system starter kit. Outline is based on the latest technologies and tools to help your component authoring experience and facilitate adoption in your organization.
Stars: ✭ 28 (-12.5%)
Mutual labels:  web-components

@glimmer/web-component Build Status

Installation

Add this package to your project with Yarn:

yarn add --dev @glimmer/web-component

Or alternatively with npm:

npm install --save-dev @glimmer/web-component

Usage

Add this import to your src/index.ts or wherever you are instantiating your Glimmer app:

import initializeCustomElements from '@glimmer/web-component';

And then after app.boot():

initializeCustomElements(app, {
  'button-list': 'ButtonList',
  'x-button': 'Button'
});

This will register custom elements for each of the items defined in the hash passed to initializeCustomElements and will replace the custom element with your Glimmer component once the custom element connects. For example, if you provide the hash { 'foo-bar': 'FooBar' }, you can then use the custom element <foo-bar> anywhere in the DOM and have your <FooBar> Glimmer component render in its place.

Browser Support

Browser support for the WebComponents spec is not not great yet. If you want to use customElements.define where it is not yet supported natively, you'll need to install the polyfill.

License

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].