Skip to content

Back To Top

Floating button that appears after scrolling, shows page progress around its edge and scrolls back to the top.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/back-to-top
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

position="static" places the button in your own layout, here at the end of a footer.

API Reference