Reference · NPL
<npl-example>
NPL element
It exists to demonstrate the pattern, not to be used in real documents. Real elements replace it.
Example
npl-example.html
source
1
<npl-example label="hello">authored children survive beside the label</npl-example>
render
Live render boots with JavaScript — the authored source is alongside.
variant: default label
With no label authored, the resolved label is the tag name — the default renders the same generated label element first, then the authored children untouched.
variant: default label
npl-example-default-label.html
source
1
<npl-example>authored children ride with the default label</npl-example>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/npl/npl-example.md