Scroll Area

Custom scroll area on Base UI with a thin rounded thumb, vertical or horizontal scrollbars and a focus ring on the viewport. A shadcn-compatible ScrollArea.

src/registry/ui/scroll-area.tsx/r/scroll-area.json

Installation#

bash
npx shadcn@latest add @minidev/scroll-area

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/scroll-area.json

Usage#

tsx
import { ScrollArea } from "@/components/ui/scroll-area"

export function Example() {
  return <ScrollArea />
}

API reference#

Also accepts every prop of ScrollAreaPrimitive.Root props, passed through to the root element.

Dependencies#

npm

@base-ui/react

Built from

No other MiniDev files
All layout components

Learn more