PullToRefresh
Pull a list down to reload it.
Maya commented on Harbour homepage
2 min ago
MCJonas moved Offline sync for tasks to Review
10 min ago
JWLeo exported the rota export
Yesterday
LSUpdated just now
Could not refresh.
All clear
Nothing new since 9:41.
In context
Maya commented on Harbour homepage
2 min ago
MCJonas moved Offline sync for tasks to Review
10 min ago
JWLeo exported the rota export
Yesterday
LSMaya commented on Harbour homepage
2 min ago
MCJonas moved Offline sync for tasks to Review
10 min ago
JWLeo exported the rota export
Yesterday
LSProps
| Prop | Type | Required | Default |
|---|---|---|---|
onRefresh | () => void | Promise<void> | Yes | — |
threshold | number | undefined | No | 60 |
refreshing | boolean | undefined | No | — |
Accessibility
The pull only starts when the content is genuinely at scrollTop === 0 when the drag begins, so pulling on scrolled content just scrolls. A small, always-visible Refresh button sits in the corner and fires the same onRefresh, so a mouse or keyboard user has a real way in.
data-rebar-* attributes
data-rebar-component="pull-to-refresh"; parts: indicator, scroll-container, refresh-button.
Migrating to Ant Design
AntD has no direct equivalent. antd-mobile's PullToRefresh is the closer sibling library if the migration target is genuinely mobile.