Scroll Area

Scrollable regions with a custom thumb.

Installation

Add this item from the registry, or import it from the package after installing Default File UI.

Registry path

itsvigneshv/default-file-ui/scroll-area

Package import

import { ScrollArea } from "@default-file/ui/components/df-scroll-area"

Default

Vertical overflow with a custom thumb.

Scrollable row 1

Scrollable row 2

Scrollable row 3

Scrollable row 4

Scrollable row 5

Scrollable row 6

Scrollable row 7

Scrollable row 8

Scrollable row 9

Scrollable row 10

Scrollable row 11

Scrollable row 12

Properties

Scrollable region with a custom overlay thumb.

ScrollArea

PropTypeDefaultNotes
viewportClassNamestringClasses on the scrollable viewport.
classNamestringClasses on the outer scroll-area root.
styleCSSPropertiesOften used to set a fixed height so overflow can scroll.
childrenReactNodeScrollable content.
…div attributesComponentProps<"div">Native div props on the root.

ScrollBar

Standalone scrollbar part when composing manually.

PropTypeDefaultNotes
orientation"vertical" | "horizontal""vertical"Scrollbar axis.
classNamestringAdditional styles.