Giter VIP home page Giter VIP logo

xeaone / element Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 3.0 5.81 MB

X-Element a zero knowledge curve, agnostic non framework that enhances custom elements with functionality and data binding that mimics native custom element and language standards.

Home Page: https://xeaone.github.io/element/

License: Mozilla Public License 2.0

JavaScript 15.95% HTML 6.44% TypeScript 72.35% CSS 5.21% Dockerfile 0.05%
web-components data-binding framework front-end router routing components polymer esmodules spa application library vue angular browser lit-element lit-html customelements webcomponents

element's Introduction

X-Element

A zero knowledge curve, agnostic non framework that enhances custom elements with functionality and data binding that mimics native custom element and language standards.

Features

  • ๐Ÿ‘ถ Simple If you know HTML, JS, and Template Literals then you know how to use X-Element

  • โ›ฝ Agnostic Use XElement with any framework or library - Lit, Vue, React, Angular.

  • โš› Reactive Efficient two way reactive databinding by default.

  • โšก Fast Rendering is blazing fast, because XElement only interacts with the dynamic DOM Nodes.

  • ๐Ÿ“ฆ Small ~(15)KB minified.

  • ๐Ÿงญ Router Client side routing using the new Navigation API

Learn

https://xeaone.github.io/element/

Example

import { component, html } from '/x-element.js';

export default class greet extends component {

    greeting = 'Default Greeting';
    greet = () => this.greeting = 'Updated Greeting';

    render = () => html`
        <h1>this.greeting</h1>
        <button onclick=${this.greet}>Greet</button>
    `;

}

Use

The two directories to use are module and bundle. Bundle includes ESNext and ES2015 js bundles. Module contains ESM files with .js, .ts, and .d.ts.

https://www.npmjs.com/package/@xeaone/element

https://esm.sh/@xeaone/element/module/index.ts https://esm.sh/@xeaone/element/module/index.js

https://cdn.jsdelivr.net/gh/xeaone/element/module/index.ts https://cdn.jsdelivr.net/gh/xeaone/element/module/index.js

Author

xeaone

License

This project is licensed under the MPL-2.0 License

element's People

Contributors

xeaone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

element's Issues

Add instance life cycle methods to component

    Promise.resolve().then(function () {
      if (options.attached) return options.attached.call(instance);
    }).then(function () {
      if (instance.attached) return instance.attached.call(instance);
    });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.