gpui-deck 0.0.4

Headless GPUI primitives with application-owned presentation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# GPUI Deck


**Documentation:** <https://gpui-deck.andongmin.com/>

A source-owned, headless UI foundation for Rust and GPUI.

The library owns control behavior, state, focus, and accessibility semantics.
Applications own their component source, layout, colors, typography, and assets.
Headless separates control behavior from application-owned presentation; the
examples render native GPUI windows.

This is an early foundation for an independent component ecosystem. It currently
includes 42 public library families and 23 copyable presentation recipes. An
executable example composes shared controls into compact tabbed and spacious
sidebar presentations. The source is maintained in this repository, with GPUI
kept as an exactly pinned rendering
dependency.

The [completion criteria and current work](https://gpui-deck.andongmin.com/en/docs/coverage/#completion-criteria-and-current-work)
track behavior, accessibility, visual defaults, source distribution, and native
validation. Catalogue coverage alone is not a claim of shadcn/ui-level completeness.

## Install


From your Rust application, add the library and install the recipe CLI from crates.io.

```sh
cargo add gpui-deck@0.0.4
cargo install gpui-deck-cli --version 0.0.4 --locked
gpui-deck add button --to src/ui
```

Declare `mod ui;` in your app, and use the matching `gpui-pre` and
`gpui-pre-platform` dependencies in the [installation guide](https://gpui-deck.andongmin.com/en/docs/installation/).

### Create a preset


[Create](https://gpui-deck.andongmin.com/en/create) opens a live GPUI workspace.
Choose Base, Neobrutal or Neumorphism, then adjust the base color, accent, chart
palette, heading and body fonts, icons and corner radius. Share the URL to reopen
the same settings. **Get code** gives you a command to create an app that opens
the same interactive gallery. The library and CLI share release version 0.0.4.

```sh
gpui-deck init my-app --preset v1.neumorphism.sage.sage.forest.pretendard.pretendard.outline.small
cd my-app
cargo run
```

Use `--dark` to start in dark mode. In an existing application, use
`gpui-deck add --preset <code>` to install the selected configuration,
editable components, fonts and icons into `src/ui/preset`. In a window opened after `gpui_deck::init(cx)`, use
`ui::preset::showcase(false, window, cx)` to render the installed workspace in
light mode, or pass `true` for dark mode.
Use `ui::preset::selected().tokens(false).palette()` with existing palette-aware
recipes, or use the installed panel, button and field helpers for the chosen style.

The [block gallery](https://gpui-deck.andongmin.com/en/blocks/) includes a
[billing dashboard](https://gpui-deck.andongmin.com/en/blocks/billing-dashboard/),
[login screen](https://gpui-deck.andongmin.com/en/blocks/login/) and
[settings screen with sidebar navigation](https://gpui-deck.andongmin.com/en/blocks/sidebar-settings/).
Use the purpose and style filters to find more screens from the Neobrutal and
Neumorphism registries. The [chart gallery](https://gpui-deck.andongmin.com/en/charts)
groups their chart examples by type. Each item includes a preview, Rust source and an install command.

```sh
gpui-deck add https://github.com/andongmin94/gpui-deck/blob/main/blocks/billing-dashboard/block.json
```

The command copies the team’s palette, dashboard source, chart and table recipes into
`src/ui`. [Install and share blocks](https://gpui-deck.andongmin.com/en/docs/guides/blocks/)
includes a runnable app and the manifest for publishing your own block.

The [registry directory](https://gpui-deck.andongmin.com/en/directory) lists
collections with their own visual style. Its first collection,
[Neobrutal](https://gpui-deck.andongmin.com/en/directory/neobrutal), brings
the raised controls and hard shadows of [neobrutal-ui](https://github.com/andongmin94/neobrutal-ui)
to Rust using GPUI Deck's headless controls. Browse 46 UI components, a data table,
eight chart examples, six page templates, the base style and 19 light/dark palettes.
The directory also includes the composed combobox, date picker and login screen.

The [Neumorphism collection](https://gpui-deck.andongmin.com/en/directory/neumorphism)
includes all 80 items from the upstream registry. It offers 56 controls and display
components, eight chart blocks, eight screen templates, five light/dark presets,
the Air foundation and two utilities. Each item installs its Rust sources and dependencies.

These commands install a login screen and an analytics dashboard in the same app.

```sh
gpui-deck add https://github.com/andongmin94/gpui-deck/blob/main/registries/neobrutal/login.json
gpui-deck add https://github.com/andongmin94/gpui-deck/blob/main/registries/neumorphism/template-analytics.json
```

Each item in the [Neobrutal](registries/neobrutal) and [Neumorphism](registries/neumorphism) collections has
its own installable manifest. Templates provide native example views with local
sample data. Components and themes share the app's `Palette` type. For example,
install `theme-blue.json` alongside the button and pass
`ui::neobrutal_theme_blue::palette(false)` to
`ui::neobrutal_button::press_button_with_palette`; pass `true` for its dark palette.
The login manifest includes the same button, input and palette source as the standalone items.

## Current scope


| Control | Behavior supplied by the library | Application-owned presentation |
| --- | --- | --- |
| **Button** | Pointer and keyboard activation, disabled state, focus, accessible name and role, and optional current-page metadata | Content and styling, including a copyable six-variant Button recipe |
| **Toggle** | Controlled pressed state over Button's activation, focus, and disabled behavior | Content and pressed-state styling |
| **ToggleGroup** | Multiple or optional single pressed value, programmatic replacement, one Tab stop, orientation-aware navigation, and disabled items | Group layout and Toggle option styling |
| **Checkbox** | Controlled unchecked/checked/mixed state, activation, disabled state, and focus | Indicator, label, layout, and state styling |
| **Switch** | Controlled on/off state, activation, disabled state, and focus | Track, thumb, label, and state styling |
| **RadioGroup** | Single selection, programmatic set/clear, one Tab stop, arrow navigation, disabled options, and focus | Group layout and option rendering |
| **Input** | Text editing state, selection, clipboard, focus, and the native text-input interface | Field container, text style, caret, and surrounding controls |
| **Textarea** | Multiline editing over the same engine, retained text, wrapping, and normal form Tab traversal | Field container, dimensions, text style, and surrounding content |
| **Field** | Label focus, help/error descriptions, and required/invalid metadata for Input/Textarea-based controls, plus ControlField for Checkbox, Switch, RadioGroup and Select | Layout, label/help/error styles, control rendering, and validation rules |
| **Label** | Named native text label that focuses an existing control when clicked, with an explicit disabled flag and no extra Tab stop | Text, layout, styling, target accessible name, and matching disabled state |
| **Select** | Single selection, replaceable options keyed by value, buffered typeahead, Home/End and arrow navigation, and scrolling to the active option | Trigger, popup height limit, content and option rendering |
| **Combobox** | Editable single/multiple selection, grouped search results, replaceable options, keyboard/pointer commit, and draft cancellation | Query frame, suggestion surface, result rows, selected chips, and empty state |
| **Calendar** | Single/multiple/range date selection, separate focus, disabled dates, configurable week start, direct month/year navigation, bounds and RTL | Month controls, weekday/date labels, grid layout, and day styling |
| **DatePicker** | Calendar selection inside Popover, selected-date or retained-cursor initial focus, single/complete-range closing, dismissal, disabled state, and typed ISO/relative date parsing | Formatted trigger, calendar/month controls, presets, and popup surface |
| **Slider** | One or more ordered numeric values, bounded steps, per-thumb focus and accessibility, keyboard/pointer adjustment, disabled state, vertical and RTL geometry | Track, fill, thumbs, sizing, and state styling |
| **Progress** | Controlled percentage or indeterminate progress, accessible name and numeric range | Track, fill, label, and any animation |
| **Breadcrumb** | Named navigation, ordered path items, and native current-page metadata | Path labels, ancestor actions, collapsed DropdownMenu items, separators, layout, and styling |
| **Tabs** | Active panel, one tab-list stop, automatic or manual activation, orientation-aware keys, and disabled tabs | Tab-list layout, tab styling, and panel contents |
| **Accordion** | Single or multiple open sections, header navigation, disabled items, and focused-panel closure | Header, indicator, panel contents, and layout |
| **Collapsible** | One disclosure, active-only content, disabled trigger, and focus on content closure | Trigger content, indicator, region contents, and layout |
| **Tooltip** | Plain-text native description with optional noninteractive rich content on Button hover/focus, delayed hover, Escape dismissal, and native tooltip positioning | Button styling, tooltip surface styling and rich content |
| **HoverCard** | Delayed rich preview on hover, touch long-press preview, trigger-to-card pointer travel, focus preview without moving focus, and dismissal | Button action, preview content, surface, and placement |
| **Popover** | Non-modal open/close state, corner or collision-aware side/alignment placement, focus, outside dismissal, and Escape | Trigger, popup contents, and surface styling |
| **DropdownMenu** | Plain, checked/mixed/radio and nested commands, keyboard navigation that scrolls the active row into view, leaf dispatch, dismissal and focus | Trigger, menu surface, command rendering, and controlled checked values |
| **ContextMenu** | Secondary-click, touch long-press or keyboard opening, pointer placement, and the shared menu tree's commands, navigation, dismissal, and focus | Focusable target, menu surface, command rendering, and controlled checked values |
| **Command** | Ranked fuzzy text search, enabled-result navigation, pointer/Enter action dispatch, and highlighted-result scrolling | Query frame, result rows, empty state, and optional Dialog composition |
| **Dialog** | Open/close state, native modal metadata, background input isolation, initial focus, dismissal, and focus restoration | Backdrop, popup, title, description, and close control |
| **AlertDialog** | Dialog's modal lifecycle with alert semantics and blocked backdrop dismissal | Decision text, cancellation control, and explicit application confirmation |
| **Separator** | Semantic or decorative separation, with horizontal/vertical orientation | Length, thickness, color, and spacing |
| **Table** | Shared fixed/flexible columns, header/body/footer structure, native row/cell semantics, row selection and header sort metadata | Width, cell content, typography, borders, and data operations |
| **ScrollArea** | Native viewport, existing overlay scrollbar, retained offsets, and descendant reveal on enabled axes | Viewport dimensions, content layout, and scrollbar appearance |
| **Resizable** | Multi-panel sizes, cascading pointer/keyboard resizing, per-panel fractional and pixel limits, collapsible panels, retained sizes, and native splitter semantics | Frame size, pane content, divider thickness, grip styling, and layout storage |
| **Direction** | Scoped logical direction, nested overrides, and consistent horizontal keys/pointer geometry | Logical row layout through `Direction::row`, application spacing and typography |
| **InputOtp** | One numeric editor, native selection/paste/delete/undo, digit slots and completion events | Slot/group presentation and application verification |
| **Menubar** | One top-level focus entry, menu switching, opening and shared command trees | Menu labels, surfaces, commands and styling |
| **NavigationMenu** | Coordinated disclosures, roving focus and destination Link activation | Destination callbacks, panel content and layout |
| **Toast** | Retained lifetime, hover/focus/window pause, safe dismissal, and a stacking Toaster with a visible limit | Message, action controls, placement and appearance |
| **Drawer** | Dialog lifecycle, outward drag-to-dismiss from four edges, and optional snap heights for vertical drawers | Backdrop, grip, surface, scrolling body and confirmation |
| **Carousel** | Leading slide with one or more slides per view, opt-in pausing autoplay, bounded/looping navigation, discrete swipe, RTL and focus restoration | Slide content and widths, viewport size, controls and indicators |
| **Chart** | Categorical series, grouped/stacked/pie/radar layouts, visible-series domain and keyboard/pointer inspection | Copyable plots, names, category heading and unit formatting shared by ticks, readout and data table |
| **MessageScroller** | Bottom following, keyed history anchoring, unread count and jump-to-latest | Stable message identities, content, dimensions and jump control |
| **Questionnaire** | Linear question/review/complete flow, validated answers and Back | Editors, prompts, validation, focus and submission |

Shared support includes the window root, popup positioning, input infrastructure,
and opt-in test observations. Internal editing machinery retained for Input is
not a separate editor product. Public APIs are still being developed.

The [component exports](https://github.com/andongmin94/gpui-deck/blob/main/crates/base/src/components.rs) define the public control and support
surface. The [input module](https://github.com/andongmin94/gpui-deck/blob/main/crates/base/src/input/mod.rs) intentionally also exposes
`EditorState`, display mapping, diagnostics and provider types used by its shared
engine; its standalone `Editor` renderer is available only to inherited tests.
`Input` and `Textarea` are the supported rendered text controls. Native test
observations require the `test-support` feature. Presentation recipes remain
consumer-owned `pub(crate)` source. `Theme` configures input colors, cursor blink
and scrollbars; application palettes own light/dark appearance.

### Copyable presentation recipes


The [recipe modules](https://github.com/andongmin94/gpui-deck/blob/main/crates/base/examples/recipes) are application-owned source
compositions, documented in the [presentation guide](https://gpui-deck.andongmin.com/en/docs/guides/recipes/).
Copy the desired module and adapt its styling and any palette import to your
application tokens.
These types live in the example, outside the `gpui_deck` crate exports.

| Recipe | Supplied presentation | Existing example use |
| --- | --- | --- |
| **Card** | Named region with a heading, description, header action, body, and footer | Session summary and its controls |
| **Badge** | Static label with secondary and accent appearances | Cursor and toolbar settings |
| **Kbd** | Static named keycaps and `+`-joined key combinations | Existing keyboard-guide controls and the summary's Shift+F10 context-menu hint |
| **Empty** (`EmptyState`) | Named empty state with description, optional media, and an action slot | No matching commands, with Clear search returning focus to the query |
| **ButtonGroup** | Connected horizontal/vertical buttons with an optional text slot | Previous month, month label, and next month |
| **InputGroup** | Shared frame around an existing input, with leading/trailing addons and horizontal/vertical layout | Required name with a default-name action, multiline notes footer, and command-search prefix |
| **Item** | Named content row with a title, description, optional media, header, footer, and trailing action | Current recording preset with a record dot, scope header, date footer and its existing preview/edit control |
| **Alert** | Inline title and description, with separate destructive styling and explicit urgency | Informational schedule notice and a missing-name warning after closing invalid settings |
| **Pagination** | Controlled previous/next buttons, current-page text, and empty/first/last-page boundaries | Moving through the preset catalogue |
| **DataTable** | Replaceable stable-ID rows, custom cell content, text filtering, typed sorting, adjustable page size, selection, column visibility and row actions | Browsing recording presets, selecting rows independently, and applying a preset |
| **Spinner** | Named indeterminate Progress with a rotating arc that respects GPUI's reduced-motion setting | The unknown-progress preview |
| **Skeleton** | Static decorative placeholder with application-controlled size and shape | The preview's unavailable percentage display |
| **Avatar** | Named circular image with explicit fallback text, using GPUI's image loader and cache, plus an overlapping AvatarGroup with a named "+N" overflow | Preset artwork or initials and a people group in the existing HoverCard preview |
| **AspectRatio** | Clipped media frame with a finite positive width/height ratio and application-owned content | A recording-frame illustration driven by the retained preset and session name |
| **Sheet** | Four-edge modal presentation over Dialog, viewport-limited size, fixed header/footer, and one scrolling body | Session settings and catalogue help panels, using retained state |
| **Sidebar** | Grouped navigation with current-page metadata, collapsible groups, an optional icon rail and an optional navigation Sheet for narrow windows | Settings sections with an icon rail and the catalogue's responsive project navigation |
| **Typography** | Named headings with explicit levels, paragraphs with native inline-code text runs, and independently named code elements | Help headings, state-ownership explanations, and the example's source identifier |
| **CodeBlock** | Read-only multiline code, an exact full-text Copy action, and bounded two-axis scrolling with keyboard access | A JSON snapshot of the retained session settings in Help |
| **Marker** | One named date/status label between decorative separators, with wrapping text and no focus stop | The currently selected Calendar date above Schedule's notes and recording plan |
| **Message** | Read-only comment with author/time metadata, a wrapping paragraph, and optional existing actions | Schedule's current session note, with Edit note returning to the shared Textarea |
| **Attachment** | Named file-metadata group with a filename, supplied media type and size, and optional existing actions | The current configuration JSON's in-memory metadata, with Inspect JSON focusing the existing CodeBlock |
| **Trace** | Expandable summary and named read-only details over the existing Collapsible lifecycle, with an optional action | Current form values in Help, with Close details returning focus to the summary |
| **Bubble** | Incoming/outgoing surfaces, grouped author/time labels and supplied reactions | Catalogue transcript with retained reaction Buttons |

The breadth target is the range of screens and interactions supported by
shadcn/ui. The [component coverage map](https://gpui-deck.andongmin.com/en/docs/coverage/) compares all
66 entries in its current main catalogue with the actual public scope here.
It distinguishes behavior, source-owned presentation recipes, and larger
compositions. The 42 library families and 23 recipes supply 65 distinct
implementations; Native Select maps explicitly to the existing GPUI Select. All
66 reference entries now have an implemented scope or a platform mapping. The
map records each entry's limits; catalogue coverage does not establish complete
shadcn/ui feature parity or native desktop validation.

Input provides a small, readable baseline for unset text, caret, and selection
colors. Explicit `InputEditorStyle` values take precedence. Applications own the
controls' frame borders, radii, layout, design palette, and sizing scales.

Select options have unique values. `SelectState::set_items` replaces them in a
mounted control, preserving the selection and pending cursor by value while
their options remain enabled.
Typing selects an enabled prefix match while closed and highlights it while open.
Home/End highlight the first/last enabled option in an open popup without committing.
Command and Combobox share `SearchItem` values, labels, aliases, and disabled
flags and group labels. Combobox adds single or multiple committed values to the
shared query and result navigation; typing alone does not change selection.
Applications can replace items while preserving native query editing and stable
selected values. Fetching, request ordering and free-form values belong to the
application rather than a second input or network engine.

The [two-style example](https://github.com/andongmin94/gpui-deck/blob/main/crates/base/examples/two_styles.rs) applies a compact dark
presentation and a light settings presentation to shared form controls, with
different section navigation. Its styles live in application code, outside the
behavior layer. A Session actions menu and
the summary's ContextMenu open the settings Sheet or toggle application values.
The two hosts use separate MenuState entities with shared command definitions and
the same application callback. Show cursor and Keep toolbar visible are checked
menu commands whose indicators and native checked values read the same application
booleans as the settings Checkbox and Switch. Activation closes the menu before
the application updates those booleans. Right-click the summary or focus it and press
Shift-F10. Hovering or focusing the preset button previews the preset, date, and
notes status in HoverCard; normal button activation opens settings.
That preview uses Avatar for the bundled Balanced artwork and explicit fallback
text for other presets or an empty selection. AspectRatio frames the current
session name at 4:3 for Presentation and 16:9 otherwise. Both presentations read
the existing retained preset, so applying a preset updates the next preview.
The artwork is embedded from `examples/assets`; this illustrative recording
frame uses no network request and generates no recording.
Both appearances use a right-edge Sheet for Session settings. It retains the
existing DialogState, initial input focus, form values, and scroll handle. Its
preferred width is 22 rem in Compact and 46 rem in Settings, capped at the
viewport width; the title and Done footer stay outside the scrolling body.
Compact uses TabList/Tab/TabPanel with automatic arrow-key selection. Settings
uses Sidebar's ordinary Buttons and renders only the selected named Region:
Tab moves among enabled entries, while Enter, Space, or a click selects one.
Below a 640 px viewport width, that Sidebar stacks above its content without
changing its keyboard contract. Each appearance owns its separate retained
TabsState; a Sidebar must not share or reuse a state previously bound by TabList.
Preferences, Help, Schedule, and Presets keep their form values when the Sheet
closes and reopens. Help uses an Accordion whose keyboard section opens a guide
in a non-modal Popover.
Breadcrumb presents `Session settings > Help > Keyboard guide` in that guide.
Its ancestor Buttons either close the guide, select Preferences through
`TabsState::select_value`, and focus its navigation entry, or return to the Help
trigger; the current item is static text. Kbd displays the controls' existing
keys, including Shift+F10 beside the
summary's context-menu hint, without registering shortcuts.
The State ownership panel uses Typography for its explanations and CodeBlock for
a JSON snapshot of the current session settings. Copy writes that complete
snapshot through GPUI's clipboard API; the preview does not edit or apply it.
Attachment describes the same string as `session-configuration.json`, with
`application/json` and its current UTF-8 byte count. Inspect JSON focuses the
existing code viewport. The example identifies the content as in memory and not
saved; it does not create, open, upload, or download a file.
CodeBlock bounds long lines and bodies with the existing ScrollArea and keeps
code scrolling separate from the surrounding Sheet body.
Trace follows the configuration preview with an expandable view of the current
session, selected date, preset, drawing tool, cursor and toolbar settings, and
notes. It reads existing form state and retains one `CollapsibleState` for its
disclosure. Close details uses that lifecycle to return focus to the
summary. This view records no job execution or history.
A slider on the summary card drives a progress preview, using the same retained
value for its label, thumb position, and progress fill.
Toggle switches the progress preview to a named Spinner and a static Skeleton
placeholder while preserving the Slider value. Spinner uses GPUI's animation
wrapper and remains still when `App::reduce_motion()` is enabled. ToggleGroup
applies independent bold/italic emphasis to the summary text.
These controls live inside a Collapsible that starts closed and preserves their
retained values. The menu's Reset preview action opens an AlertDialog with Cancel
initially focused; only confirmation restores known progress at 40%.
Search commands opens a Command inside a centered Dialog. Its query matches
action labels, values, and keywords, then dispatches the same application actions
as the menu.
Its empty state can clear the query without dispatching a command or closing the
dialog. Card and Badge compose the summary; ButtonGroup shares the calendar
controls' framing while preserving each Button's normal Tab stop and action.
InputGroup frames the existing editors and addons without adding another text
input. An empty session name offers Use default, which restores `MiniCast` and
returns focus to that input; the action is disabled for a non-editable input.
Closing settings with a missing name shows an inline Alert on the summary.
Item presents the current preset, a decorative record dot, a scope header and the
recording date footer beside its existing HoverCard/edit control.
The Presets tab uses DataTable and Pagination to browse the same four choices as
the Combobox. Search, column sorting, and page changes retain the current choice;
Use preset applies a stable row ID to the existing Combobox state. The unavailable
preset remains disabled. Query, sort, and page state survive closing the Sheet.
Session settings includes a retained multiline notes field and semantic separators;
its body scrolls when the available window height cannot hold all fields.
An editable recording-preset Combobox filters choices while retaining the last
committed preset. The session-name Field connects its visible label, help text,
and application-supplied required/error state to the native input. Standalone
Labels focus the Drawing tool Select and Preview percentage Slider without
opening a popup or changing a value. The application supplies each target's
accessible name and mirrors its disabled state on the Label. A rich Tooltip
on the existing Edit button explains what the settings screen changes.
Schedule uses a DatePicker composed from Calendar and Popover, and a Table
reflecting the retained session name, date, and recording preset. Marker reads the
Calendar's selected date to label the boundary above the notes and plan. Its two
rules are decorative, leaving one meaningful label and the existing Tab order.
A vertical Resizable divides shared session notes and the plan table. The table
scrolls horizontally and vertically as its pane changes size, while the surrounding form
uses the Sheet's vertical ScrollArea. Date, notes, and pane ratio survive closing
the Sheet.
Below the panes, Message presents the same session note as read-only content from
You, with the last local edit time supplied by the application. Edit note focuses
the existing Textarea. Empty notes show EmptyState instead of an empty message.
The timestamp describes local editing; the example does not send or deliver notes
and keeps no separate message history or copy of the note.
An informational Alert explains that the example retains preferences without
scheduling an actual recording. Its date bounds are 2026–2027.

The separate [catalogue example](https://github.com/andongmin94/gpui-deck/blob/main/crates/base/examples/catalogue.rs) connects the
remaining families into five retained views. Navigation demonstrates coordinated
menus, destination links, a collapsed breadcrumb with a dropdown of hidden ancestors and collapsible grouped project navigation; Forms and feedback runs numeric code entry through
a confirmation Drawer into a stacked, pausing Toast, plus help Sheets at all four edges; Media and data supplies RTL-aware
Carousel slides (one or two per view) and inspectable line/bar/area, stacked, pie/donut and radar charts with an exact data table;
Conversation combines incoming/outgoing bubbles, anchored history/streaming,
reactions and a validated question/review/complete flow. Selection combines date
ranges, independent dates and grouped multiple recording targets. Its calendars
start weeks on Sunday, disable weekend selection and offer RTL layout. These examples are local
and make no network requests.

## Documentation


The [documentation site](https://gpui-deck.andongmin.com/) (English,
Korean, Japanese and Chinese) covers [installation](https://gpui-deck.andongmin.com/en/docs/installation/) — toolchain, native
prerequisites, running the examples, depending on the crate and copying recipes
with the CLI — the [architecture](https://gpui-deck.andongmin.com/en/docs/architecture/) of the rendering,
behavior and presentation layers, one page per component and recipe with live
previews, and [where each part of the source lives](https://gpui-deck.andongmin.com/en/docs/contributing/).

Run the examples from a checkout:

```sh
cargo run -p gpui-deck --example two_styles --locked -- settings
cargo run -p gpui-deck --example catalogue --locked
cargo run -p gpui-deck --example starter --locked
```

## Verify changes


Run the checks for the completed change set:

```sh
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --features gpui-deck/test-support --locked -- -D warnings
cargo test --workspace --features gpui-deck/test-support --locked
cargo build --workspace --bins --examples --locked
```

The [Verify workflow](https://github.com/andongmin94/gpui-deck/actions/workflows/verify.yml)
uses one matrix for Linux, Windows, and macOS. Platform-independent checks run
once; each platform still compiles its native dependencies and all examples.

The [Docs workflow](https://github.com/andongmin94/gpui-deck/actions/workflows/docs.yml)
lints, type-checks and builds the Fumapress site in `docs/` together with the
live previews in `crates/web-preview` for WebAssembly, then runs its Playwright
tests. Cloudflare Workers Builds deploys `main` to the site from `docs/` with
`npm run build` and `npm run deploy:cloudflare`. Pages are MDX files in
`docs/content/docs`, with translations beside them as `name.ko.mdx`,
`name.ja.mdx` and `name.zh.mdx`; English is the source, so update the
translations with it (an untranslated page shows the English text). Preview the site locally with `npm ci`,
`npm run preview:build` and `npm run dev` in `docs/`; the preview build needs
the `wasm32-unknown-unknown` target and `wasm-bindgen-cli` 0.2.127, which it
installs itself on Linux when they are missing.

| Check | Linux | Windows | macOS |
| --- | --- | --- | --- |
| Formatting and Clippy | Yes | — | — |
| Full behavior and integration suite | Yes | — | — |
| Real consumer composition flows | Included above | Yes | Yes |
| Source CLI filesystem contracts | Included above | Yes | Yes |
| Isolated recipe tests | Included above | — | — |
| Native examples and source CLI builds | Yes | Yes | Yes |

Composition tests use representative session and catalogue flows instead of
duplicating every scenario for each palette. Add tests for distinct behavior and
observed regressions. Windows and macOS run the composition target with
`--skip two_styles::recipes::`, leaving isolated recipe tests to Linux while
retaining the real consumer flows and native builds. Workflow run results are
the source of automated status.

Headless tests exercise control behavior and exposed accessibility metadata.
Native Korean/CJK IME composition and candidate windows, screen-reader interaction,
mixed-DPI displays, and the visual appearance of both styles still require manual
validation on a real desktop. These checks have not been completed for this
initial version. Performance claims also require measurements of the actual app.

## Source and license


GPUI Deck was extracted from [GPUI Kit](https://github.com/longbridge/gpui-kit),
**v0.9.0**, at commit
[`7591a35eced761e3613c01e71ff04c10129dae1a`](https://github.com/longbridge/gpui-kit/tree/7591a35eced761e3613c01e71ff04c10129dae1a).
It is independently maintained.

The initial changes narrow the upstream workspace to a headless library, remove
the styled catalog and unrelated applications, retain the editing and interaction
code required by the four controls, and add focused Select/Dialog composition,
two application styles, and project-specific verification.

The form layer adapts the upstream Checkbox and Switch roots without their
decorative parts, and adds retained selection and roving focus to RadioGroup.
Tabs adds retained active panels and keyboard navigation. Popover reuses the
positioning primitive with a retained non-modal focus and dismissal lifecycle.
Accordion adds single/multiple-open state and header navigation. The shared Menu core
composes Popover with command dispatch and a keyboard/pointer cursor;
DropdownMenu and ContextMenu provide button and secondary-click entry points.
Slider adapts the upstream pointer interaction to ordered linear values with
per-thumb native focus, value semantics and keyboard adjustment. Progress retains the controlled numeric
semantics while the application supplies its track and fill.
Toggle delegates activation to Button, and ToggleGroup adds retained multiple
selection and roving focus to Toggle options.
Collapsible adds retained visibility and content-closure focus to the upstream
disclosure contract, reusing Button for its trigger. AlertDialog adapts the
upstream Dialog specialization to the existing retained DialogState and parts.
Command adds searchable, replaceable and grouped actions over the existing Input engine.
Textarea exposes that engine's retained multiline state as a public control,
with form Tab traversal and disabled-input Tab skipping. Separator adds static
native semantics without imposing visual geometry.
Combobox extends shared `SearchItem` search and activation with editable drafts,
single/multiple committed selection, grouped and replaceable options, and an
anchored suggestion lifecycle. Calendar and DatePicker retain single, multiple
and inclusive-range values with independent keyboard navigation. Field connects visible
labels and application validation feedback to existing text-input semantics;
it does not own a separate form state or validation engine. Tooltip uses GPUI's
native tooltip rendering with Button focus, hover timing, and dismissal behavior.
HoverCard reuses Popup for rich, noninteractive previews, adding delayed pointer
transitions and focus-preserving dismissal without a second placement engine.

Later fixes from GPUI Kit v0.9.1 and v0.10.0 were ported selectively, together
with the gpui-pre 0.3.12 snapshot those releases use: Input IME composition and
candidate placement, masked-input IME redaction, grapheme-cluster editing, text
exposed to assistive technology, and smaller editing and layout fixes; Button
pointer styles while disabled and secondary presses; Tab into a window with
nothing focused; the macOS wheel edge stop; and an explicit reduced-motion
preference. Upstream changes that depend on removed modules, styling, or GPUI
Fast were not taken. As upstream main does after v0.10.0 (#4015), Calendar and DatePicker use
jiff's civil `Date` and `Weekday` instead of Chrono's, which limits Calendar
dates to years 1 through 9998.

Software source is licensed under [Apache-2.0](https://github.com/andongmin94/gpui-deck/blob/main/LICENSE-APACHE). The original
Longbridge copyright and license notices are retained. Dependencies keep their
respective licenses.

The Neobrutal collection reimplements the visual conventions of
[neobrutal-ui](https://github.com/andongmin94/neobrutal-ui) with GPUI Deck's
native Button, Input and Field. Each install includes the upstream MIT notice.

The Neumorphism collection ports the components, analytics examples, page templates
and preset tokens from [Neumorphism UI at `8df59f3`](https://github.com/andongmin94/neumorphism-ui/tree/8df59f3af43e2f2bbb87bddd090ca153af16223e).
It uses GPUI views and state, native style refinements, and paired light and dark
shadows. Installable sources carry the MIT notices for andongmin94 and shadcn.
Create derives its Sage, Lavender, Clay and Graphite surfaces from this collection.

The native examples and GPUI web previews share the unmodified Regular, Medium,
SemiBold and Bold OpenType faces from [Pretendard 1.3.9](https://github.com/orioncactus/pretendard/releases/tag/v1.3.9).
The fonts are distributed under the [SIL Open Font License 1.1](crates/base/examples/assets/fonts/LICENSE).
The documentation site loads the variable webfont from the Pretendard npm package.

Create also includes the regular faces of [Spectral and Space Mono](https://github.com/google/fonts/tree/6ebe737e44fd64ee736bbc6feed6136a6dbfd222/ofl)
under the SIL Open Font License. The activity and bookmark icons come from
[Lucide](https://github.com/lucide-icons/lucide/tree/0d2d161eee4a9b50e1f73e8f8c50713128d7d751/icons)
and [Bootstrap Icons](https://github.com/twbs/icons/tree/8ead55224786ab489ad7e5db78b3ab23b2045934/icons).
Installed presets include the [font and icon notices](crates/cli/presets/create/assets/).