Elastic Pull To Refresh
A production-scale, light + dark Elastic Pull To Refresh component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add elastic-pull-to-refreshLive preview available in the gallery.
Usage
import { ElasticPullToRefresh } from "@lerpa/ui";
<ElasticPullToRefresh />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| onRefresh | () => Promise<void> | — | |
| className | string | — | |
| items | PullItem[] | — | |
| refreshPool | Omit<PullItem, "id">[] | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.