Skip to content
Design System
GitHub

Text 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.

  • button
  • group
  • list
  • listitem
  • Follows the WAI-ARIA pattern Button.

Keyboard

KeysAction
TabReach 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 / SpacePin the span or mark, so its links stay highlighted; again to let go. Pinning a span scrolls its marks into the picture's view
EscLet 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.