# Legend: Label & callout element for AI agents

> Labels connect to the exact colour keys used in the diagram beside them.

Canonical page: https://agentframes.ai/elements/bloomline/legend/
Markdown: https://agentframes.ai/elements/bloomline/legend.md

## Overview

- Name: Legend (`legend`), an element: one HyperFrames block per size
- Part of: the [Bloomline](https://agentframes.ai/packs/bloomline.md) pack (30 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: Labels connect to the exact colour keys used in the diagram beside them.
- Pack: [Bloomline](https://agentframes.ai/packs/bloomline.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Field Notes (warm paper) (`field`), Loop Studio (alternate brand kit) (`loop`); avoid none
- Typical duration: 8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/bloomline/legend.mp4
- Poster: https://agentframes.ai/media/bloomline/legend.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Bloomline pack. Add a `legend` beat to plan.json on a `field` canvas with slots `label`, `title`, `body`, `items`, `sceneIndex` and `sceneTotal` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":1,"maxLength":40} | READING THE MAP |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":52} | What the colours mean. |
| `body` | string | body | {"type":"string","minLength":1,"maxLength":90} | Every action in the review is colour coded. |
| `items` | string | items | JSON string. {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["pink","purple","orange","yellow"]},"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":30}},"required":["colour","label","detail"]},"minItems":2,"maxItems":4} | [{"colour":"purple","label":"Read","detail":"Looks, changes nothing"},{"colour":"yellow","label":"Draft","detail":"Prepares, a person sends"},{"colour":"orange","label":"Change","detail":"Needs approval first"}] |
| `sceneIndex` | number | Zero-based footer position |  | 0 |
| `sceneTotal` | number | Total scenes for footer |  | 1 |

## What your agent can change

Labels connect to the exact colour keys used in the diagram beside them.

Native 1920×1080, 8s at 30fps. Full-frame graphics block; use the matching aspect variant.

### Install and mount

Copy every manifest file from path to target relative to your project; include registryDependencies. The shipped starters already contain everything. Use a unique host DOM id, the block's data-composition-id and data-composition-src, and native data-variable-values. HyperFrames scopes each mounted instance.

### Edit

Edit this block's HTML directly or set per-instance variables on its mount. Simple slots are text/number values; nested slots are JSON strings, parsed and checked against constraints.json before anything draws (out-of-range input stops the block and sets data-bloomline-error on its root).

- label: native string; {"type":"string","minLength":1,"maxLength":40}
- title: native string; {"type":"string","minLength":1,"maxLength":52}
- body: native string; {"type":"string","minLength":1,"maxLength":90}
- items: JSON string; {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["pink","purple","orange","yellow"]},"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":30}},"required":["colour","label","detail"]},"minItems":2,"maxItems":4}

Brand: brandName, series, headingFont (Fredoka/Montserrat), logo (empty or inline base64 image), paper, ink, pink, purple, orange, yellow, soft. Footer: sceneIndex (zero-based), sceneTotal.

### Timing and limits

Everything lands by about 3 s and holds for reading; the last 0.4 s draws out. Copy is checked at six words per second within the 8 s scene, so shorten copy rather than stretching the scene. Numbers in charts must be your real figures or be labelled illustrative (the source/unit line stays on screen).

Source: editable HTML, local SVG/GSAP. See the pack NOTICE and font licences.

## FAQ

### What can my AI agent change in Legend?

Your agent fills the `label`, `title`, `body`, `items`, `sceneIndex` and `sceneTotal` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Bloomline look.

### Which aspect ratios does Legend support?

Legend is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 8s.

### How do I get Legend?

Legend is included in the Bloomline pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Bloomline

- [Pointer Callout: Highlighted Line](https://agentframes.ai/elements/bloomline/pointer-callout.md): A document line is highlighted; an attached pointer links it to the explanatory annotation.
- [Key Phrase](https://agentframes.ai/elements/bloomline/key-phrase.md): A groovy underline traces the exact bounds of one phrase.
- [Caution](https://agentframes.ai/elements/bloomline/caution.md): A signal mark interrupts a decorative ribbon and holds.
- [Instruction Peel](https://agentframes.ai/elements/bloomline/instruction-peel.md): A page peels back to separate visible content from a hidden instruction.

## Community

Coming soon.
