0.1.22 • Published 3 years ago
@vandeurenglenn/custom-elements v0.1.22
custom-elements
set of custom (vanilla) elements following Material Design 3 spec
disclaimer: This is not as advanced as the material-components set
Elements
custom-theme
the start for all elements (for now). custom-theme can be used to switch defined token values the idea is just to use material design tokens this should allow us to use DSP generated tokens note: only JS tokens supported for now.
<custom-theme language="js" path="./themes/default/tokens.js"></custom-theme>Under the hood
lit-html
Uses lit-html to render, this brings allot of extra features checkout lit-html
examples
bind to attribute
html`<my-el value=${this.value}></my-el>`bind to property
html`<my-el .value=${this.value}></my-el>`setting attributes
html`<my-el ?disabled=${this.disabled}></my-el>`declarative events
html`<my-el @click=${() => console.log('click')}></my-el>`0.1.22
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4-2
3 years ago
0.1.4-0
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago