Scroll area

Scroll area: A native scroll container with thin overlay scrollbars and edge fades that appear only when content overflows. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Scroll area

npx motion-ui-skill add scroll-area

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • react
  • tailwind-merge

Source files

Scroll area

A native scroll container with thin overlay scrollbars and edge fades that appear only when content overflows.

Install

npx motion-ui-skill add scroll-area

Dependencies

  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import { ScrollArea as ScrollArea } from "@/components/motion/scroll-area";

export function Example() {
  return (
    <div className="p-6">
      <ScrollArea />
    </div>
  );
}

Browse this category