Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fresh-scroll

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fresh-scroll

🚀 Infinite scroll component for React! Zero dependencies, TypeScript ready. Perfect for social feeds, product listings, and content streams. Blazing fast performance with minimal code! 🔥

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
72
decreased by-11.11%
Maintainers
0
Weekly downloads
 
Created
Source

Fresh Scroll 🚀

Link to documentation

A zero-dependency, TypeScript-ready infinite scroll component for React. Perfect for social feeds, product listings, and content streams with blazing fast performance.

This component is headless and does not include any styling. You have full control over the component's appearance.

 <FreshScroll<ContentItem>
      containerProps={{
        className: "flex flex-col gap-4",
      }}
      components={{
        content: ContentCard,
        loader: <div>Loading...</div>,
        empty: retry => <button onClick={retry}>Retry</button>,
        error: retry => <button onClick={retry}>Retry</button>,
      }}
      loadNext={loadNext}
    />

Features

  • 🪶 Zero dependencies
  • 📦 TypeScript ready
  • ⚡️ Minimal and performant
  • 🎯 Simple API
  • 🔄 Built-in loading, error, and empty states
  • ⚙️ Customizable IntersectionObserver options

Documentation

Documentation

Installation

npm install fresh-scroll

or

yarn add fresh-scroll

or

pnpm add fresh-scroll

License

MIT © Daniel Bílek

Keywords

FAQs

Package last updated on 22 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc