Get License
Free
Pro

Scroll Area

Overflow container with a thin, theme-aware scrollbar. Give it an explicit height (for example class="h-64") so the inner content can scroll.

freenew

Fixed height list

  • Accordion
  • Alert
  • Avatar
  • Badge
  • Button
  • Card
  • Checkbox
  • Combobox
  • Dialog
  • Drawer
  • Dropdown
  • Input
  • Popover
  • Select
  • Tabs
  • Toast
  • Tooltip

HTML

Installation

Run the following command to add this component to your project:

bash

npx base-ui-cli add scroll-area

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.

bash

npx -y base-ui-mcp

Base UI provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx base-ui-cli add scroll-area
// Paths are relative to aliases.components (default: src/app/components)
import { ScrollAreaComponent } from './scroll-area/scroll-area.component';

@Component({
  selector: 'app-your-component',
  imports: [
    ScrollAreaComponent
  ],
  template: `...`
})
export class YourComponent {}

API for scroll-area — generated from JSDoc in the library source.

API reference for scroll-area
APIMemberTypeDefaultDescription
base-scroll-areaOverflow container with a thin, theme-aware scrollbar. Give it an explicit height (for example `class="h-64"`) so the inner content can scroll.
base-scroll-areaclassstring''Extra host classes merged via `cn()`. Include a height so overflow can scroll.