Skip to content

Pull to Refresh

Free

A scroll area that people pull down at the top to load new content. A liquid drop stretches out of a handle, then turns into a spinner.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 21, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the indicator and the content in the root, and give the root a height.

inbox.tsx

PullToRefresh

<div>
PropTypeDefaultDescription
onRefresh—Runs on a refresh. Return a promise: the spinner stays until it settles.
onRefreshError—Gets what onRefresh threw or rejected with. Without it, the error goes to reportError.
thresholdnumberPULL_TO_REFRESH.thresholdThe pull in px that arms a refresh. Default 88.
disabledbooleanfalseNo pull and no refresh.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PullToRefreshIndicator

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PullToRefreshLabel

<div>
PropTypeDefaultDescription
stateRequired"armed""pulling""refreshing"—The state that shows this label. Put one label per state you want words for.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PullToRefreshContent

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PullToRefreshTrigger

<button>
PropTypeDefaultDescription
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use it on a list that people read from the top and that gets new items from a server.
  • Return a promise from onRefresh: the spinner stays until it settles, and at least 700ms.
  • Add PullToRefreshTrigger so keyboard, mouse, and agent users can refresh with no drag.
  • To load older items at the end of a list, use a Button.
  • To act on one row with a sideways swipe, use Swipe Actions.
TabMoves to PullToRefreshTrigger, when the content has one.
EnterorSpaceRuns the refresh from the trigger. The button is busy until it ends.
Pull
sheet · the content follows the finger on a rubber band, and a drop stretches out of the handle on a liquid neck
Armed
panel · at 88px the neck breaks with a small spring pop; a release now refreshes
Refreshing
progress · the drop opens into a ring, and a liquid head turns once each 900ms
Settle
sheet · the ring closes, the head spirals home into the handle, and the content springs back to rest

Built with

Installs with Pull to Refresh

Components
Button
  1. AddedPull to Refresh, with Button.
Open the release