Scroll Area

Augments native scroll functionality with custom, cross-browser styled scrollbars.

ui@radix-ui/react-scroll-area

Installation

$npx futureuikit add scroll-area

Import

import { ScrollArea } from "@/components/ui/scroll-area"
Layout Variant
Color Theme
Thickness (Spacing)
Shape

Named Keys & Props

Pass these exact named keys as props on <ScrollArea />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"default""minimal""glass""glow"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { ScrollArea } from "@/components/ui/scroll-area";

export default function Example() {
  return (
    <ScrollArea className="h-72 w-48 rounded-md border p-4">
      <p>Scrollable content goes here...</p>
    </ScrollArea>
  );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Provides consistent scrollbar styling across all browsers.
  • ◆Supports both vertical and horizontal scrolling.
  • ◆Built on Radix UI ScrollArea primitive.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run 'npx futureuikit add scroll-area'.
  • ◆Import: 'import { ScrollArea } from "@/components/ui/scroll-area";'
  • ◆Usage: Wrap overflowing content inside ScrollArea with a fixed height or width.