Vitrinev1.0.4

Counter

Markup, a scoped style and a module script: the three files an example can have.

A button that counts its clicks. Its style uses a plain button selector, which reaches this example only: the theme wraps the file in @scope when it runs.

live · Counter
example.html
<button id="counter" type="button">Clicked <output>0</output> times</button>

The files live in assets/examples/counter/, so this page and The example shortcode can both run them.