Stretch refresh
A pull-down gesture where the content stretches like elastic before refreshing.
Today
- Maya Chen Deployed build #240 to staging
- Ravi Patel Deployed build #239 to staging
- Noor Haddad Deployed build #238 to staging
- Tomás Ferreira Deployed build #237 to staging
- Ingrid Solberg Deployed build #236 to staging
When to use
- Mobile lists that reload on pull.
When not to use
- Desktop-only screens.
- Reduced-motion users are the majority; offer a button.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/stretch-refresh
Adds its 3 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
StretchRefresh
4 props
PropTypeDefault
onRefresh *() => void | Promise<void>—
children *ReactNode—
labelstring"Feed"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-hidden 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/stretch-refresh.mdThe index of every part is at /llms.txt.