0.1.22 • Published 10 months ago

@vandeurenglenn/custom-elements v0.1.22

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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

10 months ago

0.1.21

10 months ago

0.1.20

10 months ago

0.1.19

10 months ago

0.1.18

10 months ago

0.1.17

10 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.14

10 months ago

0.1.13

11 months ago

0.1.12

11 months ago

0.1.11

11 months ago

0.1.10

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4-2

11 months ago

0.1.4-0

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago