For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

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

const TAGS = Array.from({ length: 24 }).map((_, i) => `v1.2.0-beta.${24 - i}`);

export function ScrollAreaDemo() {
  return (

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/scroll-area.json

Usage

import { ScrollArea } from "@/components/ui/scroll-area/scroll-area";
<ScrollArea style={{ height: 240 }}>Long content…</ScrollArea>

RTL

To enable right-to-left support, see the RTL guide.

"use client";

import * as React from "react";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";

API Reference

See the Base UI documentation for the full API.