All Projects → ayushgp → web-components-tutorial

ayushgp / web-components-tutorial

Licence: other
HTML Web Component using Vanilla JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to web-components-tutorial

Xy Ui
🎨面向未来的原生 web components UI组件库
Stars: ✭ 603 (+1486.84%)
Mutual labels:  web-components, shadow-dom
Shadow Dom In Depth
Everything you need to know about Shadow DOM
Stars: ✭ 191 (+402.63%)
Mutual labels:  web-components, shadow-dom
Custom Elements Ts
Create native custom elements using Typescript
Stars: ✭ 52 (+36.84%)
Mutual labels:  web-components, shadow-dom
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 (-42.11%)
Mutual labels:  web-components, shadow-dom
Shadow-DOM-inject-styles
🎉 A helper function to easily modify Shadow DOM CSS.
Stars: ✭ 47 (+23.68%)
Mutual labels:  web-components, shadow-dom
Remount
Mount React components to the DOM using custom elements
Stars: ✭ 522 (+1273.68%)
Mutual labels:  web-components, shadow-dom
Omi
Front End Cross-Frameworks Framework - 前端跨框架跨平台框架
Stars: ✭ 12,153 (+31881.58%)
Mutual labels:  web-components, shadow-dom
Atomico
Atomico a micro-library for creating webcomponents using only functions, hooks and virtual-dom.
Stars: ✭ 481 (+1165.79%)
Mutual labels:  web-components, shadow-dom
lwc-test
LWC plugins and utilities for testing
Stars: ✭ 39 (+2.63%)
Mutual labels:  web-components, shadow-dom
helium-animated-pages
A light spiritual succesor to neon-animated-pages using only css animations
Stars: ✭ 17 (-55.26%)
Mutual labels:  web-components, shadow-dom
ionic-custom-components
🌈 Ionic Tutorial: Mastering Web Components in Ionic Framework. This repo is an Ionic project showcasing Angular custom components and Stencil custom web components.
Stars: ✭ 30 (-21.05%)
Mutual labels:  web-components, shadow-dom
element
Fast and simple custom elements.
Stars: ✭ 65 (+71.05%)
Mutual labels:  web-components, shadow-dom
Nutmeg
Build, test, and publish vanilla Web Components with a little spice
Stars: ✭ 111 (+192.11%)
Mutual labels:  web-components, shadow-dom
Eplayer
🔮 A web-component html5 video player facing future
Stars: ✭ 253 (+565.79%)
Mutual labels:  web-components, shadow-dom
grid-container
A grid for the future, CSS Grid Layout + Web Components (Custom Elements v1 + Shadow DOM v1)
Stars: ✭ 51 (+34.21%)
Mutual labels:  web-components, shadow-dom
focus-trap
A lightweight web component that traps focus within a DOM node
Stars: ✭ 44 (+15.79%)
Mutual labels:  web-components, shadow-dom
Projects
Final Project materials and description.
Stars: ✭ 36 (-5.26%)
Mutual labels:  tutorials
TimeDoser-v2
🕑 Dosify your time (version 2, retired)
Stars: ✭ 52 (+36.84%)
Mutual labels:  web-components
vaadin-checkbox
The Web Component for customized checkboxes. Part of the Vaadin components.
Stars: ✭ 18 (-52.63%)
Mutual labels:  web-components
CNN Own Dataset
CNN example for training your own datasets.
Stars: ✭ 25 (-34.21%)
Mutual labels:  tutorials

Web Components tutorials

This repository contains the code I wrote to go along with web component posts. To run the code, you need a static server. I use static-server for it. Go to either directory and run:

$ static-server

Then navigate to localhost.

Links to tutorials:

  1. Part 1: HTML Web Component using Vanilla JavaScript
  2. Part 2: Making Higher Order Components
  3. Part 3: Using Attributes to define web components' behavior

Components Created for examples:

Part 2:

Part 2 Component

Part 3:

Part 3 Component

About Web Components:

The HTML and DOM standards define four new standards/APIs that are helpful for defining Web Components. These standards are:

  1. Custom Elements: With Custom Elements, web developers can create new HTML tags, beef-up existing HTML tags, or extend the components other developers have authored. This API is the foundation of Web Components.
  2. HTML Templates: It defines a new <template> element, which describes a standard DOM-based approach for client-side templating. Templates allow you to declare fragments of markup which are parsed as HTML, go unused at page load, but can be instantiated later on at runtime.
  3. Shadow DOM: Shadow DOM is designed as a tool for building component-based apps. It brings solutions for common problems in web development. It allows you to isolate DOM for the component and scope, and simplify CSS, etc.
  4. HTML Imports: While HTML templates allow you to create new templates, HTML imports allows you to import these templates from different HTML files. Imports help keep code more organized by neatly arranging your components as separate HTML files.
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].