2026-05-31 18:34:36 +08:00
|
|
|
---
|
2026-05-31 09:36:23 +08:00
|
|
|
nav: Guide
|
|
|
|
|
title: Introduction
|
|
|
|
|
---
|
|
|
|
|
|
2026-05-31 18:34:36 +08:00
|
|
|
# RustUI
|
2026-05-31 09:36:23 +08:00
|
|
|
|
|
|
|
|
AI-Native component library for modern visualization.
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
- **AI-First** — Zero-ambiguity APIs designed for AI code generation
|
|
|
|
|
- **Type Safe** — Full type inference with TypeScript
|
|
|
|
|
- **Flexible Theme** — Full theme customization via CSS variables
|
|
|
|
|
- **Tree Shaking** — Modular architecture, only bundle what you use
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-05-31 18:34:36 +08:00
|
|
|
npm install rustui
|
2026-05-31 09:36:23 +08:00
|
|
|
# or
|
2026-05-31 18:34:36 +08:00
|
|
|
pnpm add rustui
|
2026-05-31 09:36:23 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
|
|
```tsx
|
2026-05-31 18:34:36 +08:00
|
|
|
import { Button } from 'RustUI'
|
2026-05-31 09:36:23 +08:00
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
|
<Button variant="solid" color="primary">
|
2026-05-31 18:34:36 +08:00
|
|
|
Hello RustUI
|
2026-05-31 09:36:23 +08:00
|
|
|
</Button>
|
|
|
|
|
)
|
|
|
|
|
```
|