Jason Mohab-Ali

ScrollToTop

Component

About

Floating 'scroll to top' button that appears after the user scrolls past a threshold. Smooth-scrolls to the top on click using lucide-react ArrowUp icon.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ScrollToTop to your project and fits it to your theme.

Code

How ScrollToTop is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ScrollToTopinline from "@/components/ui/scroll-to-top"

export default function Demo() {
  return <ScrollToTopinline />
}

Dependencies

More by Jason Mohab-Ali

View all
  • Path to Resilience Orbital Timeline

    Path to Resilience Orbital Timeline

    46
  • Alqemist Interactive Demo

    Alqemist Interactive Demo

    12
  • What Saa SChat Inbox

    What Saa SChat Inbox

    12
  • Qreatify Super Agent Card

    Qreatify Super Agent Card

    6
  • Alqemist Security

    Alqemist Security

    5
  • Alqemist Hero

    Alqemist Hero

    4
  • Path to Resilience Partnership Section

    Path to Resilience Partnership Section

    3
  • Path to Resilience Workflow Grid

    Path to Resilience Workflow Grid

    3

Explore more

Part of Construction-company — browse the full library on 21st.dev.