Feedback & Overlays
Pull to Refresh
Drag down from the top of any content past a threshold to trigger an async refresh, with a rotating spinner and a rubber-band release.
Usage
$58,834.75
+1,204.60 · 2.1% today
Drag down to refresh
Installation
npm install @wunderui/reactThen import what you need:
import { PullToRefresh } from "@wunderui/react"Examples
Idle
The list at rest — drag it down to refresh.
Weekly report ready2 min ago
New comment on Q3 plan14 min ago
Invoice #1042 paid1 h ago
Deploy finished3 h ago
Pulling
An arrow appears above the list while you pull.
Weekly report ready2 min ago
New comment on Q3 plan14 min ago
Invoice #1042 paid1 h ago
Deploy finished3 h ago
Refreshing
A spinner while the new items load.
Weekly report ready2 min ago
New comment on Q3 plan14 min ago
Invoice #1042 paid1 h ago
Deploy finished3 h ago
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Mobile inbox
Drag the list down to load new items.
Inbox
Invoice #4021 paid
New member joined
Weekly report ready
Drag the list down to refresh
API Reference
| Prop | Type | Default |
|---|---|---|
| onRefresh | () => void | Promise<void> | — |
| threshold | number | 70 |
| maxPull | number | 110 |