Dmitry

Scroll Container

Component

About

Container with custom styled scrollbar. From GooseUI (goosen-x/gooseui), MIT.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scroll Container to your project and fits it to your theme.

Code

How Scroll Container is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ScrollContainer } from "@/components/ui/gooseui-scroll-container"

const rows = ["Anna", "Max", "Olga", "Ivan", "Nina", "Oleg", "Vera", "Egor"]

export default function CardPreview() {
  return (
    <ScrollContainer
      height="7rem"
      variant="primary"
      className="w-48 rounded-lg border bg-background"
    >
      <ul className="divide-y text-sm">
        {rows.map((name) => (
          <li key={name} className="px-3 py-1.5">
            {name}
          </li>
        ))}
      </ul>
    </ScrollContainer>
  )
}

More by Dmitry

View all
  • Border Beam

    Border Beam

    156
  • Features Grid

    Features Grid

    104
  • Rating

    Rating

    1
  • Tap Coin

    Tap Coin

  • Header — Magazine

    Header — Magazine

  • Header — Mega Menu

    Header — Mega Menu

  • Header — Morphing

    Header — Morphing

  • Morphing Header

    Morphing Header