# Flux 2.0 — Walkthrough and storyboard Numbered steps beside the interface they describe, and a strip of screens that tells a flow frame by frame. Reference: https://flux.kaptio.com/components/walkthrough/ Requires: https://flux.kaptio.com/tokens/v2/flux.css and flux-components.css ## Use it when Explains how a task is done. The walkthrough pairs each step’s text with a frame holding the real components involved, and stacks the two when its container is narrow. The storyboard is the overview: one small screen per moment, numbered, with a caption, for a flow people should understand before they read the detail. ## Do not use it when Not for a task people are doing right now; use the Stepper, which validates as it goes. Not for events in time; use the Timeline. Not for marketing feature lists; this is for explaining a sequence where order is the meaning. ## Markup ### Walkthrough
  1. Check what is still on request

    Open the booking. Anything a supplier has not yet confirmed is marked On request, and the booking cannot be confirmed until it is resolved.

    Hotel Borg, 2 rooms
    Confirmed
    Glacier walk, 12 places
    On request
    The services list on the booking.
  2. Chase the supplier

    The note tells you who to contact and by when. Record their answer on the service, and the badge changes to match.

    Reply due by 9 October

    Iceland Guides holds the places until then.

  3. Confirm the booking

    When every service is confirmed, Confirm booking becomes available. The agent receives the confirmation straight away.

### Storyboard
  1. KB-104931

    1 service on request

    The agent opens the booking.

  2. Glacier walk

    On request

    They find the service still waiting.

  3. Glacier walk

    Confirmed

    The supplier’s answer is recorded.

  4. Ready to confirm

    The booking is confirmed to the agent.

## API - flux-walkthrough (class): On the ol of steps. It is the container for the narrow layout. - flux-walkthrough__step (class): An li holding the text and the media. Its number comes from the list order. - flux-walkthrough__text | __title (class): The step heading and its paragraphs. - flux-walkthrough__media | __frame (class): The figure and the layer-02 frame that holds components or an image. - flux-storyboard (class): On the ol of frames. Frames fill the row at 16rem minimum. - flux-storyboard__frame | __screen | __caption (class): A frame, its 4:3 screen and its numbered caption. - flux-storyboard__screen-title | __screen-meta (class): Text inside a schematic screen. ## Accessibility - Both are ordered lists, so the step count and position are announced. - Each step has a real heading, so the walkthrough can be navigated by headings. - A screenshot in a frame needs alt text saying what it shows, not what it is. ## Keyboard - Tab: Reaches links in the text. Components in a frame are illustrations; give their controls tabindex="-1" or use a screenshot. ## Tokens - --flux-walkthrough-gap | -marker-size | -marker-bg | -marker-text - --flux-walkthrough-media-bg | -media-padding - --flux-storyboard-frame-width | -gap | -number - --flux-storyboard-screen-bg | -screen-border | -screen-padding ## Do - Show the real components in the frame, so the walkthrough stays true when they change. - Keep one idea per step. ## Do not - Do not number content where order is not the meaning; this is for sequences. - Do not let a storyboard replace the walkthrough for people doing the task; it is the overview.