Skip to content

feat(plugins): ui.checkbox, Desktop's compact checkbox (contract 1.7) - #610

Merged
Hona merged 3 commits into
devfrom
kit/checkbox
Nov 21, 2026
Merged

Hona merged 3 commits into
devfrom
kit/checkbox

Conversation

@Hona

@Hona Hona commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Adds ui.checkbox to the plugin contract (since 1.7): Desktop's compact checkbox, Checkbox appearance="compact" (packages/ui/src/forms/checkbox/checkbox.tsx and checkbox-compact.css at db2d889c).

What it draws (checkbox-compact.css)

  • Box: 16 pt, 2 down in a 16 ├ù 20 stack, radius 4, a 0.5 inset border-strong hairline.
  • Unticked: bg-base, or layer-1 with surface = "layer-1".
  • Ticked: the accent with its 20% white sheen and the 1 pt check in icon-contrast.
  • Hover: the hover overlay (contrast hover when ticked).
  • Label: 13/440 on a 20 line, 8 after the box; an optional 11/440 description 6 under it.
  • Disabled: the whole row at half opacity, as [data-disabled] [data-slot="checkbox-v2-row"].
  • Accessibility: role checkbox with its checked state and the label as its name.

Contract

  • Props: UiCheckboxProps takes text, description?, checked, surface?, disabled? and onChange (new state in event.checked).
  • Generated files: contract.json plus the output of cargo run -p opencode-plugin-spec -- --write.
  • Node: crates/opencode-plugin-runtime/src/ui_nodes.rs, next to ui.radio.

First user

The browser import dialog's "Sign-ins" and "Browsing history" boxes (#611). Official (left) and ours (right), dark:

Unticked, light:

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona merged commit 37c4c43 into dev Nov 21, 2026
3 checks passed
@Hona
Hona deleted the kit/checkbox branch November 21, 2026 18:01
@Hona

Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Smoke: 12/12 on #611's PR CI build (contains this PR); lines on #611.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant