Grounded text
v0.64.0, changelogBetaText whose words point at places on a picture, as a vision-language model answers: a span highlights its boxes, a mark its words; `fromGrounding` reads a model's offsets and coordinates.
Roles
What a screen reader is told each part is, measured in the examples on the Overview tab.
buttongrouplistlistitem
- Follows the WAI-ARIA pattern Button.
Keyboard
| Keys | Action |
|---|---|
| Tab | Reach the picture's marks once, then each linked span in reading order; focus shows what it links to. GroundedTextBody has only the spans; its picture in the other panel keeps annotated-image's keys |
| ← → / ↑ ↓ | On the picture: previous or next mark (as annotated-image) |
| Enter / Space | Pin the span or mark, so its links stay highlighted; again to let go. Pinning a span scrolls its marks into the picture's view |
| Esc | Let go of what is pinned |
Colour contrast
Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.
- TextLabels, values, bodyWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 17.3:1Dark 17.3:1
- Keyboard focus ringFocus visible, on every control in itWCAG 1.4.11 Non-text ContrastNeeds 3:1Light 17.3:1Dark 17.3:1