A pseudo-selector that matches the layer's main content area.
You can target the main element using the :main
selector:
<a href="/cards/5" up-target=":main">Load post</a>
<main>
Post will appear heare
</main>
Unpoly will also update :main
if no other target is given:
<a href="/cards/5" up-follow>Load post</a>
<main>
Post will appear heare
</main>
Also see targeting the main element.
The default main targets are:
[up-main]
attribute<main>
elementYou may configure main target selectors in up.fragment.config.mainTargets
.