f0rextasy

Pull Refresh

Cards

About

A pull-to-refresh style card wrapper with a manual sync button and a spinning stamp icon that refreshes its content on demand.

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

Code

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

Usage.tsx

import { PullRefresh } from "@/components/ui/pull-refresh";

export default function PullRefreshDemo() {
  const handleRefresh = async () => {
    await new Promise((resolve) => setTimeout(resolve, 1200));
  };

  return (
    <div className="flex w-full max-w-sm items-center justify-center p-6">
      <PullRefresh onRefresh={handleRefresh}>
        Gate 3 admissions are current as of 19:30.
      </PullRefresh>
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    9
  • Stamp Seal

    Stamp Seal

    7
  • Network Graph

    Network Graph

    7
  • Board Checklist

    Board Checklist

    5
  • Empty State Card

    Empty State Card

    3
  • Running Order Timeline

    Running Order Timeline

    3
  • Invite Modal

    Invite Modal

    3
  • Time Input

    Time Input

    3

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    298
  • Statistics Card 2

    Statistics Card 2

    271
  • Stats cards with links

    Stats cards with links

    81
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    173
  • Card Studio

    Card Studio

    35
  • Card

    Card

    70
  • Card

    Card

    18