Logo FS-Skia-UI

Controls Gallery — Navigation & Menus Page Spec

Inherits the shell, palette, pointer contract, keyboard contract, and determinism rules from 00-controls-gallery-overview.md.

Goal

Demonstrate the navigation and command-surface controls — page tabs, a menu bar, a right-click context menu, and a toolbar — fully driven by pointer hover and click, including secondary-button activation.

Controls Demonstrated

Control

Module

Required

Events

Demonstrates

tabs

Tabs

items

onChanged

Active-page selection within the page

menu

Menu

items

onSelected

Top menu bar with submenus

context-menu

Menu

items

onSelected

Right-click contextual commands

toolbar

Toolbar

children

onClick

Compact grouped command strip

User Experience

The page hosts its own inner tab strip switching between sub-panels, a menu bar whose menus open on click and reveal items, a toolbar of grouped commands, and a large surface that opens a context menu on secondary-click at the pointer location. A command log records every menu/toolbar selection.

Layout

Mouse & Pointer Interactions

Keyboard

Core Behaviors

Data Model

Visual / Palette Requirements

App State

Track: active tab and per-tab state; open menu; toolbar enabled flags; context-menu open flag and anchor; command log; hovered ids.

Determinism and Evidence

Acceptance Criteria

Out of Scope

Type something to start searching.