AsterUIDocsv1.0.2

Docs / Component reference

ScrollArea

Constrain a long list or a wide piece of content to its own scrolling region.

Scroll area example

Install

sh
npx @fierst/ui@1.0.2 add scroll-area

Registry dependencies: theme.

Exports from ./ui/scroll-area: ScrollArea.

Download the registry source for scroll-area 1.0.2.

API contracts

ts
export function ScrollArea({
  maxHeight = '260px',
  orientation = 'vertical',
  bordered = false,
  class: extraClass,
  children,
}: {
  maxHeight?: string;
  orientation?: 'vertical' | 'horizontal' | 'both';
  bordered?: boolean;
  class?: string;
  children?: View;
})