0.1.22 • Published 2 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
2 years ago
0.1.21
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4-2
2 years ago
0.1.4-0
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago