Scroll Stack

Cards that pile on top of each other as the page scrolls.

Scroll down

01 / 04

Collect

Gather feedback from every channel in one inbox.

02 / 04

Sort

Group it by theme, automatically, as it comes in.

03 / 04

Decide

Weigh each theme by the customers behind it.

04 / 04

Close the loop

Tell people when what they asked for ships.

Installation#

pnpm dlx shadcn@latest add @balick/scroll-stack

Or pass the full URL: https://ui.balick.me/r/scroll-stack.json

Usage#

import { ScrollStack, ScrollStackItem } from "@/components/ui/scroll-stack"

export function Process() {
  return (
    <ScrollStack>
      <ScrollStackItem className="h-80">Collect</ScrollStackItem>
      <ScrollStackItem className="h-80">Sort</ScrollStackItem>
      <ScrollStackItem className="h-80">Decide</ScrollStackItem>
    </ScrollStack>
  )
}

Props#

<ScrollStack />

PropTypeDefault
top

Distance kept between the stack and the top of the screen. The default clears the navbar.

string"6rem"
offset

How much of each card stays visible above the next one.

string"1.5rem"

<ScrollStackItem />

PropTypeDefault
...props

An opaque card, so the cards it covers do not show through. Any element works as a child of ScrollStack.

ComponentProps<"div">—