Logo FS-Skia-UI

Controls Gallery — Selection & Toggles Page Spec

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

Goal

Demonstrate every boolean and selection control — single and multi — with pointer-driven selection, including the color picker's swatch palette wired to the gallery accent.

Controls Demonstrated

Control

Module

Required

Events

Demonstrates

check-box

CheckBox

text

onChanged

Boolean with checked/indeterminate

radio-group

RadioGroup

items

onChanged

Single choice from a visible set

switch

Switch

onChanged

Compact boolean setting

list-box

Collections

items

onSelected

Single-selection list

multi-select-list

Collections

items

onChanged

Multi-selection with selected keys

combo-box

Collections

items

onChanged

Compact dropdown selection

color-picker

ColorPicker

swatches

onSelected

Palette swatch selection

User Experience

The page is a settings-style form. The user clicks checkboxes and switches to flip booleans, picks one option from a radio group and one row from a list box, selects several rows in the multi-select list, chooses from a combo dropdown, and picks an accent from the color picker's swatches. A live "Selection summary" reflects all current selections.

Layout

Mouse & Pointer Interactions

Keyboard

Core Behaviors

Data Model

Visual / Palette Requirements

App State

Track: all boolean/tri-state values; radio selection; list and multi-select selections; combo selection and open state; selected swatch; hovered ids; selection summary snapshot.

Determinism and Evidence

Acceptance Criteria

Out of Scope

Type something to start searching.