Layout

Scroll area

@xui/scroll-area

A scroll container with slim, theme-aware scrollbars. Give the host a bound — a height for vertical scrolling, a width for horizontal.

Install

pnpm add @xui/scroll-area

Add the barrel to a standalone component's imports:

import { XuiScrollAreaImports } from '@xui/scroll-area';

@Component({
  imports: [XuiScrollAreaImports],
  // …
})

Examples

Vertical

Loading preview…

Horizontal

Loading preview…

API

XuiScrollArea

componentxui-scroll-area

A scroll container with slim, theme-aware scrollbars (WebKit and Firefox), so overflowing content scrolls without the OS's default chrome. Give the host a bound — a height for vertical scrolling, a width for horizontal.

Inputs

NameTypeDefaultclassClassValueExtra classes, merged into the component's own rather than replacing them.''orientationXuiScrollOrientationWhich axis may scroll. The other one is clipped.this.config.orientation

Source

libs/ui/scroll-area/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.