Loading theme preference
GitHub—

Navigation Menu

Displays an 8-bit navigation menu component.

Behaviors

What a player (or an agent) can do with this navigation-menu. Press Test on the preview to play them live. Agents can fetch them as JSON from /r/behaviors/navigation-menu.json or run them on this page with await window.__8bitcn.behaviors.run("navigation-menu").

  1. Open a section

    Open Getting started and read its links open

    Steps
    Main · setValue("Getting started")
    Expected
    "Main" has value = "getting-started"
    The preview shows an element with role "link" containing "How to install dependencies"
    The preview shows an element with role "link" containing "Building Retro Blocks"
    A value change is reported to "getting-started"
  2. Switch sections

    Move from Getting started to Components switch

    Steps
    Main · setValue("Components")
    Expected
    "Main" has value = "components"
    The preview shows an element with role "link" containing "Scroll-area"
  3. Close the menu

    Close the open Components panel close

    Steps
    Main · close()
    Expected
    "Main" has value = null
    A value change is reported to null
  4. Follow a link

    Open Getting started and press Installation, which jumps to this page's Installation section and closes the menu follow

    Steps
    Main · setValue("Getting started")
    Installation · press()
    Expected
    "Main" has value = null
    A value change is reported to null