Skip to content
Design System
GitHub

Image grid

v0.17.4Beta

Many pictures as a grid or a scroll-snap strip: lazy tiles that keep their aspect, skeleton, hidden and broken states, single or multiple picking, and a lightbox with arrow keys and Esc.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • button
  • img
  • list
  • listitem
  • status
  • Follows the WAI-ARIA pattern Button.
  • Announces changes through a live region, so a screen reader reads an update without focus moving to it.

Keyboard

KeysAction
EnterSpaceOpen the picture in the lightbox, or pick it while picking
←→In the lightbox: previous or next picture
EscClose the lightbox and return focus to the picture's tile

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.