Repository
Current version released
3 years ago
Dependencies
other
https://deno.land/lit-html/directive.jshttps://deno.land/lit-html/directives/async-append.jshttps://deno.land/lit-html/directives/async-replace.jshttps://deno.land/lit-html/directives/cache.jshttps://deno.land/lit-html/directives/class-map.jshttps://deno.land/lit-html/directives/guard.jshttps://deno.land/lit-html/directives/if-defined.jshttps://deno.land/lit-html/directives/live.jshttps://deno.land/lit-html/directives/repeat.jshttps://deno.land/lit-html/directives/style-map.jshttps://deno.land/lit-html/directives/template-content.jshttps://deno.land/lit-html/directives/unsafe-html.jshttps://deno.land/lit-html/directives/unsafe-svg.jshttps://deno.land/lit-html/directives/until.jshttps://deno.land/lit-html/lit-html.js
Versions
- v2.0.2Latest
- v2.0.1
- v2.0.0
- v2.0.0-rc.14
- v2.0.0-rc.13
- v2.0.0-rc.12
- v2.0.0-rc.11
- v2.0.0-rc.10
- v2.0.0-rc.9
- v2.0.0-rc.8
- v2.0.0-rc.7
- v2.0.0-rc.6
- v2.0.0-rc.5
- v2.0.0-rc.4
- v2.0.0-rc.3
- v2.0.0-rc.2
- v2.0.0-rc.1
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-rc.59
- v1.0.0-rc.58
- v1.0.0-rc.57
- v1.0.0-rc.56
- v1.0.0-rc.55
- v1.0.0-rc.54
- v1.0.0-rc.53
- v1.0.0-rc.52
- v1.0.0-rc.51
x-element
_________
/ /__ __\ \
/ / \ \ / \ \
\ \ /_\_\ / /
\_\_____/_/
A dead simple starting point for custom elements. It provides the following functionality:
- Efficient element generation and data binding via lit-html
- Automatic
.propertyto[attribute]reflection (opt-in) - Automatic
[attribute]to.propertysynchronization (one-directional, on connected) - Simple and efficient property observation and computation
- Simple delegated event handling
- Useful error messages
Installation:
curl https://raw.githubusercontent.com/Netflix/x-element/master/x-element.js > x-element.jsā¦or if youāre fancy:
yarn add @netflix/x-elementor
npm install @netflix/x-elementProject Philosophy:
- No compilation step is necessary for adoption, just import
x-element.js - Implement a minimal set of generalized functionality
- Make as few design decisions as possible
- Presume adopters are browser experts already, donāt get in their way
- Follow the web platform precedents whenever possible
- Remain compatible with any browser which fully supports custom elements
- Prioritize simple syntax and useful comments in the code itself
- Strive for zero dependencies (never add more!)
Development:
yarn install && yarn startThenā¦