Get StartedComponentsStylingThemingMath & Science
MCP

Layout

Scroll Area

A thin custom scrollbar on top of native scrolling.

Markdown

Import

tsx
import { ScrollArea } from "@indoku/ui"

Examples

Basic usage

Props

Root

PropTypeDefaultDescription
orientation"vertical" | "horizontal" | "both"–
type"hover" | "always" | "scroll"hover"hover" shows the scrollbar on hover/scroll, "always" always, "scroll" only while scrolling.
viewportPropsComponentPropsWithoutRef<"div">–Extra props for the viewport element (e.g. tabIndex, aria-label).

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev