PullToRefresh
moleculesTouch and pen pull-down gesture on a scroll container that awaits onrefresh behind a spinner, with live-region announcements.
Activity feed
Wrap a scroll container; with touch or a pen, pull down from the top past threshold and release: onrefresh is awaited while the spinner holds the slot.
jun restarted worker-02 09:41
ci deployed api-gateway 3.14.2 to eu-west-1 09:28
amara approved the cache-01 failover runbook 09:02
priya exported 12,480 rows to export.csv 08:47
ci nightly backup of postgres-primary finished 03:00
mateo merged fix/retry-budget yesterday
Threshold and labels
threshold is the damped pull distance in px that arms the refresh; pullLabel, releaseLabel and label are the live-region announcements, shown here as they change.
threshold 48: quick Pull this pane down.
threshold 72: default Pull this pane down.
threshold 120: deliberate Pull this pane down.
States
disabled ignores the gesture; a rejected onrefresh still clears the spinner (handle the error yourself); an empty list can still be pulled.
Disabled while offline sync runs.
Pull to trigger a failing fetch.
No new orders
Pull down to check again.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | Snippet | — | |
onrefresh | () => Promise<void> | void | — | Awaited after a release past the threshold; the spinner shows until it settles. |
threshold | number | 72 | Damped pull distance (px) that arms the refresh. |
label | string | 'Refreshing…' | Announced through the live region while `onrefresh` is pending. |
pullLabel | string | 'Pull to refresh' | |
releaseLabel | string | 'Release to refresh' | |
disabled | boolean | false | |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
class | string | '' |