Kinetik UI

Fade Scroll

.md

A scroll view whose edges fade only where there is more to see, with a slim indicator that slips away.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add fade-scroll

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/fade-scroll.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/fade-scroll.tsx
    View source files

Usage

import { FadeScroll } from '@/components/kinetik/fade-scroll';

<FadeScroll style={{ height: 260 }} accessibilityLabel="Privacy summary">
  {sections}
</FadeScroll>;

When to use

  • A scrolling area inside a screen, such as terms in a sheet, a list in a card or a row of chips, where people need a hint that there is more.
  • Places where a hard cut-off edge would look like the content ends there.

When not to use

  • The main scroll view of a screen. The screen edges already show that it scrolls.
  • Content on a busy background such as a photo. The fades need a flat colour to fade into.

Notes

  • An edge fade appears only when there is content beyond that edge, and grows over the first fadeSize points of scrolling.
  • Set fadeColor to the colour behind the scroll view (it defaults to the theme background). #RRGGBB colours work best.
  • The slim indicator shows while scrolling and slips away 0.7 s after it stops. With reduced motion the platform's own indicator is used instead.

Props

FadeScrollProps

PropTypeDefaultDescription
childrenrequiredReactNode—
horizontalbooleanfalseScroll sideways instead of down.
fadeSizenumber32Length of each edge fade. Defaults to 32.
fadeColorstring—The colour behind the scroll view, which the edges fade into. Defaults to the theme background.
indicatorbooleantrueA slim indicator that shows while scrolling. Defaults to true.
accessibilityLabelstring—Read by screen readers, e.g. "Terms of service".
testIDstring—
styleStyleProp<ViewStyle>—Give it a height (or a width when horizontal), or it grows with its content.
contentContainerStyleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
A native scroll view with two gradient views and a bar that read the scroll offset on the UI thread. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.94× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 135 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The animated indicator is replaced by the platform's own.
Screen readers
A plain scroll view named by accessibilityLabel; the fades are decoration.
Touch target
Not interactive itself; its content keeps its own targets.

Source files

components/kinetik/fade-scroll.tsx is in the Code tab of the preview above.