Skip to content

FrameSlider

Generated from front/ui/catalogue/examples/FrameSlider.json

section · interactive (ships a small web component) · no children. All components: component playground.

A walk-through of captioned frames: previous and next controls, then the explanation, then the image at full width. One frame at a time with JavaScript; every frame stays in the HTML without it.

Rendered from the example props below with the real component. Theme: coffee · oncall · nightsky · gravity · poland · ulam · platform · open on its own

{
"component": "FrameSlider",
"props": {
"title": "Each screen, in order",
"intro": "Previous and next above the image; the explanation sits under it.",
"previous": "Previous",
"next": "Next",
"frames": [
{
"image": {
"src": "/og-image.png",
"alt": "Studio home before a source is uploaded",
"width": 1200,
"height": 630
},
"caption": "The Studio home, before a source is uploaded."
},
{
"image": {
"src": "/og-image.png",
"alt": "The published course in the learner view",
"width": 1200,
"height": 630
},
"caption": "The learner view of the published course."
}
]
}
}
Prop Type Required Notes
id string Anchor id. max length 40, default "frames"
title string Section title. max length 160
intro string One or two sentences under the title. max length 600
previous string Previous-frame control. max length 40, default "Previous"
next string Next-frame control. max length 40, default "Next"
frames array of objects yes Frames in order. min 1 items, max 24 items
frames[].image object yes An image with explicit size (prevents layout shift)
frames[].image.src string (href) yes Image URL (local /images/… or the tenant storage). max length 2048
frames[].image.alt string yes Text alternative; empty string only for decorative images. max length 300
frames[].image.width integer yes Intrinsic width in px. ≥ 1
frames[].image.height integer yes Intrinsic height in px. ≥ 1
frames[].caption string yes Explanation under the image. max length 400

What a text-only client, an unknown renderer or a plain-text channel shows for the example above.

Each screen, in order
Previous and next above the image; the explanation sits under it.
The Studio home, before a source is uploaded.
The learner view of the published course.

A node whose props fail the schema never breaks the page: the renderer shows the plain-text fallback instead (and logs the issues in development).

{
"frames": []
}

Issues:

  • /frames fewer than 1 items

Rendered as:

Nothing: this component has no text of its own.

axe-core: 22 rules passed, 0 violations, 0 need manual review. Run at build time on the server-rendered HTML in jsdom. Colour contrast and layout rules need a browser and are covered by the Playwright axe scans of the reference frontend.