Duostrap Scroll Area
A scrollable container styled with classic Duostrap 4px borders, recessed tracks, and beveled gradient thumbs.
Duostrap Scroll Area extends Base’s host-owned scroll domain with a classic 4px bordered white container, a 12px recessed gray track, and a beveled #fff to #e6e6e6 linear-gradient thumb suited for server logs, release archives, and classic dashboards.
Preview
Section titled “Preview”Workspace source
Section titled “Workspace source”This private draft projection is not published on npm, and the installed Proto UI CLI cannot generate its facade. The interactive previews run from workspace source; there is no installed-consumer snippet to copy.
Inside the workspace, use the @proto.ui/prototypes-duostrap/scroll-area entry. See the Duostrap README for local build and theme setup.
Composition & Styling
Section titled “Composition & Styling”Root├── Viewport└── Scrollbar └── ThumbRootframes content with 4px corners, a#cccborder, an inset top shadow, and paired#fff/#333light surface contrast even inside dark host pages.Viewportpreserves Base’sautoprojection preference so the host selects native or composed chrome, entering theTaborder only when scrollable overflow exists.Scrollbarpaints a 12px recessed#eeetrough whileThumbuses the classic#fff→#e6e6e6gradient,#b3b3b3border, top inner highlight, and a forced-colors border fallback.
Examples
Section titled “Examples”Release Archive
Section titled “Release Archive”Mount a vertical scrollbar for compact release lists and archive panels.
Horizontal Thumbnails
Section titled “Horizontal Thumbnails”Use orientation="horizontal" to scroll classic Duostrap thumbnail cards horizontally.
The following prop belongs to Scrollbar (Root, Viewport, and Thumb add no props):
| Prop | Type | Default |
|---|---|---|
orientation | 'vertical' 'horizontal' | 'vertical' |
Exposed States
Section titled “Exposed States”- Viewport:
focused,focusVisible,scrollAxes,scrolling,scrollProjection,scrollXPosition,scrollXVisibleRatio,canScrollLeft,canScrollRight,scrollYPosition,scrollYVisibleRatio,canScrollUp,canScrollDown. - Scrollbar:
orientation.