Component packs › Tug › Rubber Refresh

Rubber Refresh

Pull the feed and a drip of colour stretches with your finger, then snaps into a spinner past the line.

Rubber Refresh is a gesture from Tug, a component pack with 8 gestures: Eight pull gestures that follow your finger and let go like real material. Price: $2 for the whole pack.

Built with: 1:1 rubber pull, stretching drip, velocity-seeded settle.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Rubber Refresh props

PropTypeDefaultDescription
darkboolean
widthnumber
autoplayboolean
onRefresh() => void

Methods on the ref

Use it in React

import RubberRefresh from './RubberRefresh';

<RubberRefresh />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Tug

Good for: Drag and pull gestures.