mljr-ui · showcase

Scroll To Top

Fixed button that appears after scrolling past a threshold. Smooth-scrolls to top on click. Zero dependencies.

primitive scroll-to-top

Usage

primitive.ScrollToTop(primitive.ScrollToTopProps{
    Threshold: 300,
    Position:  "bottom-right",
})