Files
LCUI/docs/en/overview/quick-start.mdx
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.4 KiB
Plaintext

# Quick Start
Get up and running with LCUI in minutes.
## Prerequisites
- **Operating system** — Windows (recommended) or Linux
- **Node.js** — Required to run `@lcui/cli`
- **xmake** — C/C++ build tool
- **Git** — Download and manage source code
## Installation
Install the LCUI CLI globally:
```sh
npm install -g @lcui/cli
```
Create and run your first app:
```sh
lcui create my-app
cd my-app
lcui build
xmake run app
```
`lcui create` clones a minimal project from the lcui-quick-start template repository, including xmake.lua configuration, example code, and dependencies. Once done, run `lcui build` to compile TSX resources, then `xmake run app` to launch the application.
## Next steps
- Explore the sample project generated by `lcui create` — look at the code and file structure to understand the basics of an LCUI application.
- Read the widget reference (Button, Text, TextInput, Anchor, ScrollArea) to learn about built-in widgets.
- Read the Styling chapter to learn how to apply CSS properties to widgets.
- Read the Customization chapter to learn how to create custom widgets.
- Read the TSX & Dev Tools chapter to understand `@lcui/react` usage and limitations in depth.
## Having trouble?
If you run into problems while learning, you can get help through:
- Ask questions on GitHub Discussions (use the `Q&A` label).
- Check CONTRIBUTING.md in the repository root to learn how to contribute.