Files
LCUI/docs/examples/scrollarea-dual-scrollbars-xml/ui.xml
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

45 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<lcui-app>
<style>
.demo-scrollarea {
width: 400px;
height: 300px;
border: 1px solid #d0d7de;
}
.demo-grid {
display: flex;
flex-wrap: wrap;
width: 1088px;
height: 1088px;
gap: 8px;
padding: 8px;
}
.demo-cell {
width: 100px;
height: 100px;
background: #e1e5e9;
border: 1px solid #b0b8c0;
text-align: center;
line-height: 100px;
}
</style>
<ui>
<scrollarea class="demo-scrollarea">
<scrollarea-content class="demo-grid">
<text class="demo-cell">1</text>
<text class="demo-cell">2</text>
<text class="demo-cell">3</text>
<text class="demo-cell">4</text>
<text class="demo-cell">5</text>
<text class="demo-cell">6</text>
<text class="demo-cell">7</text>
<text class="demo-cell">8</text>
<text class="demo-cell">9</text>
<text class="demo-cell">10</text>
</scrollarea-content>
<scrollbar orientation="horizontal" />
<scrollbar />
</scrollarea>
</ui>
</lcui-app>