Skip to content

ScrollEdge

Stable

A scrolling area whose top and bottom edges blur gradually, so content softens near the edge instead of meeting a hard line.

Also known as scroll shadow, scroll fade, overflow indicator

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Both edges on a chat-like list

  • I bought the blender on 2 September.
  • It stopped working after four days.
  • I have the invoice and a short video.
  • The seller said to wait a week.
  • I waited. Nobody called me back.
  • I would like a full refund of ₹2,340.
  • Here is what the rule says about this.
  • I will write the message for you to read first.
  • Nothing is sent until you press Send.
  • They have until 27 October to reply.

Scroll the list. Lines passing the top and bottom soften gradually. The padding inside keeps the first and last lines clear.

When to use it

Lets a long list scroll under a header or footer without a hard line, so the screen feels like one surface. The fade is decoration only: it never takes focus and never blocks a tap.

Made of: Outer box · Scrolling region · Top edge · Bottom edge

Use it for

  • A chat thread that scrolls under a header and a message box.
  • A panel body that scrolls under a fixed title.
  • Any long list where a border line at the edge feels heavy.

Not for

  • A panel that stays beside the page while people keep working: use CanvasPanel.
  • A surface that slides over the page: use Sheet.
  • Content that hides and shows on request: use Collapsible.

Do and avoid

Flight to Lisbon
Hotel, 3 nights
Airport taxi
Travel cover
Museum tickets
Do. The list fades softly under the edge instead of a hard line.
Flight to Lisbon

Pay by Friday to keep the seat.

Avoid. Key text stuck in the fade stays blurred and hard to read.

Do

  • Give the outer box a fixed or flexible height, or the content cannot scroll.
  • Pad the content by at least the fade size at the ends that fade.
  • Keep the header or footer you sit under transparent, so the blur shows through.
  • Use it only on edges where content really passes underneath.

Avoid

  • Do not rely on the blur to hide anything private.
  • Do not stack several ScrollEdge boxes inside each other.
  • Do not put the only copy of important text in the fade zone.
  • Do not use it where the edge has a border you want people to see.

On a phone

  • The fade at the edge is drawn over the content and ignores touch, so a finger scrolls the content underneath as normal.
  • Scrolling stops at the end of the area instead of carrying on into the page behind it.
  • Give it a height, or place it in a parent that has one, or it will not scroll.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started