Files
LCUI/docs/examples/scrollarea-dual-scrollbars-tsx/example.tsx
T
CopilotandLiu 437d93d34e docs: add native doc-viewer and widget documentation (#324)
- Add examples/doc-viewer, an LCUI-based documentation viewer with an
  MDX compiler pipeline that converts source MDX files into C/TSX
  page components rendered by lcui build.
- Add zh-CN and en documentation for 5 widgets (anchor, button,
  scrollarea, text, text-input), each with C/TSX/XML example variants
  and widget-fields data.
- Add handbook and overview documentation.

Co-authored-by: Liu <lc-soft@live.cn>
2026-08-05 22:42:19 +08:00

19 lines
502 B
TypeScript

import { ScrollArea, ScrollAreaContent, Scrollbar, Text } from "@lcui/react";
import "./example.css";
export default function App() {
return (
<ScrollArea className="demo-scrollarea">
<ScrollAreaContent className="demo-grid">
{Array.from({ length: 100 }, (_, i) => (
<Text key={i} className="demo-cell">
{i + 1}
</Text>
))}
</ScrollAreaContent>
<Scrollbar orientation="horizontal" />
<Scrollbar />
</ScrollArea>
);
}