Skip to content

zk-back-to-top ​

A link to the top of the page.

Props ​

PropTypeDefaultDescription
hrefstring'#top'Target (give an id="top" to the top of the page)
labelstring'Back to top'Accessible name
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultContent, by default an arrow

No JavaScript.

Examples ​

Basic ​

blade
<x-zk-back-to-top />

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.