web-component-base examplesA live gallery of the demos using web components. Each card opens a standalone example page.
toggleAttribute and
[flag] selectors work, and any present value is
true.
toAttribute/fromAttribute for Date
and Array props; null removes the attribute.
property vs kebab attribute (v5
breaking change).
static strictProps throwing.
extends WebComponent<typeof props> infers
this.props.* from the defaults.
'', removal resets to default, markup
wins.
onInit runs before the first render (buffering
guarantee).
static shadowRootInit.static styles via adopted stylesheets.
html + createElement on a vanilla element.