# Introduction

Start with a component. Build an interface that feels like yours.

Page: https://sui.draco.dev/docs

SUI is a collection of composable React components built with Base UI and Tailwind CSS 4. It brings form controls, navigation, data tables, layouts, content viewers, chat and charts into one visual language, with optional haptic and sound feedback. The source lives in `packages/ui`, where you can read it, change it, and compose it for your application.

## Start here

1. **Install a component.** Follow [Installation](/docs/installation) to add components to your application with the shadcn CLI. The source lands in your project, ready to edit.
2. **Try a component.** Browse the [component directory](/docs/components). Each page pairs an interactive preview with the complete example source.
3. **Make it your own.** Use [Theming](/docs/theming) for colors and CSS tokens, and [Rules](/docs/design-guidelines) for typography, spacing, surfaces, and motion.

Each item installs as editable source through SUI's shadcn registry, together with its dependencies and styles.

## Your first component

Install a component, then import it through your application's aliases:

```bash
npx shadcn@latest add draco-china/sui/button
```

With pnpm, Yarn or Bun, use `pnpm dlx`, `yarn dlx` or `bunx --bun` in place of `npx`, and `pnpm add`, `yarn add` or `bun add` in place of `npm install`.

```tsx
import { Button } from "@/components/ui/button";

export function SaveButton() {
  return <Button>Save changes</Button>;
}
```

The code tab shows each example's full file, including imports and composition; English and Chinese pages share the same examples. Examples import from `@workspace/ui/components/*`; in your application, use your own aliases, as [Import installed source](/docs/installation#import-installed-source) explains.

## Find the right pieces

| What you are building | Start with |
| --- | --- |
| Forms and settings | [Field](/docs/components/field), [Input](/docs/components/input), [Select](/docs/components/select), [Switch](/docs/components/switch) |
| Navigation and feedback | [Tabs](/docs/components/tabs), [Dialog](/docs/components/dialog), [Toast](/docs/components/toast) |
| Content and conversations | [Message](/docs/chat/message), [Markdown Viewer](/docs/viewers/markdown-viewer), [Code Viewer](/docs/viewers/code-viewer) |
| Optional glass surfaces | [Glass](/docs/components/glass) |

## Compose with intent

Components expose named parts. A dialog combines a trigger, content, title, description, and actions. A field combines a label, control, description, and error. Keep related parts together to preserve their behavior and give each interaction a clear purpose.

Base UI primitives provide keyboard interactions, focus management, and ARIA semantics. Your application still supplies meaningful labels, useful descriptions, and understandable feedback. Test custom compositions with a keyboard and assistive technology.

## Work with the source

- `packages/ui` contains components, shared hooks, CSS tokens, and accent themes.
- `apps/docs` contains the bilingual reference site and runnable examples.
- [CSS utilities](/docs/utils) cover shared effects such as Scroll Fade and Shimmer.

For coding assistants, [llms.txt](/llms.txt) provides the documentation index and [llms-full.txt](/llms-full.txt) includes the full reference and example source. Individual pages also offer Markdown through the page actions.
