---
site: ui.zyx.tw
url: https://ui.zyx.tw/figure-quiz
title: Quiz Figure
description: "A question the reader answers before the text does: the right option lights, a wrong pick is struck, and the reason appears."
---

# Quiz Figure

A question the reader answers before the text does: the right option lights, a wrong pick is struck, and the reason appears.

Group: Figures.

## Install

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

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

## Item

### Quiz Figure (`figure-quiz`)

A question the reader answers before the text does: the right option lights, a wrong pick is struck, and the reason appears.

- Use when: A judgement the reader makes first, then reads why.
- Not for: Forms that are submitted; use field.
- Related: [figure-lesson](https://ui.zyx.tw/figure-lesson.md)
- Categories: figure, motion
- Install: `bunx shadcn@latest add https://ui.zyx.tw/r/figure-quiz.json`
- JSON: [figure-quiz.json](https://ui.zyx.tw/r/figure-quiz.json)
- Page: [https://ui.zyx.tw/figure-quiz](https://ui.zyx.tw/figure-quiz) ([Markdown](https://ui.zyx.tw/figure-quiz.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
