Logo FS-Skia-UI

Controls Gallery — Layout & Containers Page Spec

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

Goal

Demonstrate every layout and container control composing child content, including a pointer-draggable split divider and pointer-driven scroll, so the structural behavior of each container is directly observable.

Controls Demonstrated

Control

Module

Required

Events

Demonstrates

stack

Stack

children

Vertical/horizontal ordered composition

grid

Grid

children

Row/column structured composition

dock

Dock

children

Edge-docked regions + fill

wrap

Wrap

children

Reflowing wrap layout

border

Border

child

Single child with border + padding

panel

Panel

children

General child surface

scroll-viewer

Collections

child

onChanged

Scrollable viewport

split-view

Collections

children

onChanged

Resizable two-region layout

User Experience

The page is a tour of layout primitives, each rendered with labeled, tinted child boxes so the container's arrangement is unmistakable. The user drags the split view's divider to repartition two regions and wheel-scrolls an overflowing scroll-viewer. The wrap container visibly reflows as the window width changes.

Layout

Mouse & Pointer Interactions

Keyboard

Core Behaviors

Data Model

Visual / Palette Requirements

App State

Track: per-container child lists; split ratio and drag flag; scroll offset; window size; hovered tile id.

Determinism and Evidence

Acceptance Criteria

Out of Scope

Type something to start searching.