Scroll Area

Scrollable region with sketch border and rough scrollbar.

Sketchy scroll line 1

Sketchy scroll line 2

Sketchy scroll line 3

Sketchy scroll line 4

Sketchy scroll line 5

Sketchy scroll line 6

Sketchy scroll line 7

Sketchy scroll line 8

Sketchy scroll line 9

Sketchy scroll line 10

Sketchy scroll line 11

Sketchy scroll line 12

<ScrollArea style={{ height: 160 }} roughness={1.5}>
  <ScrollAreaViewport>...</ScrollAreaViewport>
  <ScrollBar />
</ScrollArea>

CLI install

npx doodleui-react add scroll-area

Usage

import { ScrollArea, ScrollAreaViewport, ScrollBar } from "doodleui-react";

<ScrollArea style={{ height: 200 }}>\n  <ScrollAreaViewport>...</ScrollAreaViewport>\n  <ScrollBar />\n</ScrollArea>

Props

PropTypeDefaultNotes
animatebooleantrueDraw-in the outer border on mount. Overrides DoodleUIProvider. Reduced motion disables this unless the provider set forceAnimate.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.