1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. ericts
  3. UseScrollAnchor

UseScrollAnchor

hook

A client-safe React hook that parks a selected item at a fixed anchor point in a scroll container, with a configurable easing and duration — the click-to-scroll behavior for navigation panels, command palettes, and step lists.

pnpm dlx shadcn@latest add "https://ui.ericts.com/r/use-scroll-anchor.json"
Premium blocks for shadcn/uiShadcnblocks.com · AffiliateExplore
@hooks/use-scroll-anchor.ts