---
site: ui.zyx.tw
url: https://ui.zyx.tw/figure-diagram
title: Diagram Figure
description: "A drawing in box-drawing characters, set as text; its steps light one part at a time with a line under it."
---

# Diagram Figure

A drawing in box-drawing characters, set as text; its steps light one part at a time with a line under it.

Group: Figures.

## Install

```bash
bunx shadcn@latest init https://ui.zyx.tw/r/base.json
bunx shadcn@latest add @zyx1121/figure-diagram
```

The first line sets a project up on the base; skip it if the project already has it.

## Item

### Diagram Figure (`figure-diagram`)

A drawing in box-drawing characters, set as text; its steps light one part at a time with a line under it.

- Use when: An architecture, a flow or pseudo code the reader reads part by part.
- Not for: Charts of numbers; use chart.
- Related: [scrolly](https://ui.zyx.tw/scrolly.md), [figure-trace](https://ui.zyx.tw/figure-trace.md)
- Categories: figure, motion
- Install: `bunx shadcn@latest add https://ui.zyx.tw/r/figure-diagram.json`
- JSON: [figure-diagram.json](https://ui.zyx.tw/r/figure-diagram.json)
- Page: [https://ui.zyx.tw/figure-diagram](https://ui.zyx.tw/figure-diagram) ([Markdown](https://ui.zyx.tw/figure-diagram.md))
- Registry dependencies: `https://ui.zyx.tw/r/utils.json`

## More

- [Index](https://ui.zyx.tw/index.md): every item
- [Agent instructions](https://ui.zyx.tw/agent-instructions.md): the call order and the rules
- [DESIGN.md](https://github.com/zyx1121/www.zyx.tw/blob/main/apps/ui/DESIGN.md): the design contract
