Skip to content

Live components ​

For document authors, this guide provides examples of component fences. Live renders these blocks as controls, and Source retains editable plain text.

Board ​

To organize tasks as cards, use a board fence:

md
```board
## Todo
- [ ] Draft launch notes @codex #p1 !2026-08-01
## Doing
- [>] Verify API @reviewer
## Done
- [x] Create document
```

Use Markdown tasks as cards. Owners, priorities, and dates remain readable even without the rendered board.

Chat ​

To keep a run log or handoff transcript in the document, use a chat fence:

md
```chat
- 2026-07-28T12:00Z @alex (human): review is open.
- 2026-07-28T12:04Z @release-agent (agent): checking the build.
```

Sheet ​

To edit table cells through Live, use a sheet fence:

md
```sheet
| Task | Owner | Status |
| --- | --- | --- |
| API | release-agent | Doing |
| Copy | Alex | Review |
```

The Markdown table stores the data. Live provides controls for editing its cells.

Chart ​

To display chart data, use a chart fence with a JSON type and series:

md
```chart
{"type":"bar","title":"Runs","series":[{"data":[["Mon",3],["Tue",7]]}]}
```

To edit source data as rows, use a sheet fence.

Widget ​

To add an interaction within the document, use a widget fence:

md
```widget
{"title":"State","state":{"count":1},"html":"<button>Vote</button>"}
```

To update a component, edit its fenced source text.

Create and share Markdown documents with people and agents.