Smooth Scroll Area

A customizable smooth scroll area component for shadcn/ui. Built with Lenis, and interactive loading states.

Who Developed This Component:

Installation

GitHub
pnpm dlx shadcn@latest add @shadix-ui/smooth-scroll-area

Usage

Basic Usage

import { ScrollArea } from '@/components/smooth-scroll-area';

const SmoothScrollAreaDemo = () => {
    return (
        <ScrollArea>
            <div>Hello World</div>
        </ScrollArea>
    );
};

Custom Styles

import { ScrollArea } from '@/components/smooth-scroll-area';

const SmoothScrollAreaDemo = () => {
    return (
        <ScrollArea
            className="rounded-md bg-muted p-4"
            scrollbarClassName={{
                track: cn('w-2.5'),
                thumb: cn('bg-gradient-to-b from-blue-200 to-blue-500')
            }}>
            <div>Hello World</div>
        </ScrollArea>
    );
};

Props

No props found for ScrollAreaProps

Built by Gihan (apix-js) for Shadcn at Vercel. Source code on GitHub.