p-scroll-area-3

PreviousNext

Scroll area with both directions

Docs
cossblock

Preview

Loading preview…
registry/default/particles/p-scroll-area-3.tsx
import { ScrollArea } from "@/registry/default/ui/scroll-area";

export default function Particle() {
  return (
    <ScrollArea className="h-80 max-w-80 rounded-lg border">
      <p className="min-w-100 p-4">
        Just as suddenly as it had begun, the sensation stopped, leaving Alice
        feeling slightly disoriented. She looked around and realized that the
        room hadn't changed at all - it was she who had grown smaller, shrinking
        down to a fraction of her previous size. Alice felt herself growing
        larger and larger, filling up the entire room until she feared she might
        burst. The sensation was both thrilling and terrifying, as if she were
        expanding beyond the confines of her own body. She wondered if this was
        what it felt like to be a balloon, swelling with air until it could hold
        no more. Alice peered into the mirror, her reflection staring back at
        her with an air of mischief. She wondered what it would be like to step
        through the glass and into the world beyond, where everything seemed to
        be topsy-turvy and nothing was quite as it seemed. It's no use going
        back to yesterday, because I was a different person then, reflected
        Alice.
      </p>
    </ScrollArea>
  );
}

Installation

npx shadcn@latest add @coss/p-scroll-area-3

Usage

import { PScrollArea3 } from "@/components/p-scroll-area-3"
<PScrollArea3 />