Skip to content
caliper ui pro docs

Pull to refresh

Pull a list down to refresh it, with a button for everyone else.

Pro

Pull to refresh

  • Aiko TanakaRe: Invoice INV-041609:12
  • Kofi MensahSSO setup for Northwind08:47
  • Hannah BrooksCan we move Friday’s call?Yesterday

When to use

  • Mobile lists and feeds that load newer items.
  • Anywhere a refresh gesture is expected.

When not to use

  • The data is live; update it automatically.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/pull-to-refresh

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

PullToRefresh

4 props
PropTypeDefault
labelstring"Pull to refresh"
onRefresh *() => void | Promise<void>—
children *ReactNode—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-hidden and aria-label kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/pull-to-refresh.md

The index of every part is at /llms.txt.

More in Slider and refresh