Skip to content

JS API ​

AnchorNav ​

The AnchorNav component does not expose any specific JavaScript API.

The AnchorNavLink class implements the features of the Transition primitive.

AnchorNavTarget ​

The AnchorNavTarget class declares the in-view mount strategy: it mounts when its section crosses into the viewport and unmounts when it leaves. Set the margin per element with data-mount="in-view:<rootMargin>".