pkg:clod/com.clodhub/controls 0.11.0 Buttons, icon buttons, toggles, panels, banners, dialogs and help pages that draw with the theme's tokens, for web, Apple and Android. `controls` is the set of small interface pieces every screen is made from: text buttons (primary, outlined, link), round icon buttons (filled, outlined, plain) with an optional pulsing halo meaning "you can tap this", round on/off toggles (microphone, camera, sound), panels (with an active state), accent banners, modal dialogs, and a scrolling help page. It also holds the Material icon paths used by the web and Apple parts, a badged-icon helper, and number and time text (`formatCount`, `mmss`). All visible text is passed in already translated; nothing in it is specific to a game. Examples A lobby uses a filled icon button with a halo for "start" once enough people are seated; a settings row shows sound, microphone and camera toggles; "how to play" opens the help page with the recipe's translated sections; a leave action opens a dialog with two buttons. Package URL: pkg:clod/com.clodhub/controls@0.11.0 Class: Controls (pkg:clod/com.clodhub/controls-class@1.1.0): Buttons, toggles, dialogs, panels and help pages with accessible names. Any component of this class can fill a recipe slot that asks for it. Category presentation/controls; https://clodhub.com/classes/controls-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Fcontrols-class Provides (1) - controls (com.clodhub/controls 1.0.0): Buttons, icon buttons, toggles, panels, banners, dialogs and help pages that draw with the theme's tokens. Text is always supplied already translated. Web: implementation/web (DOM elements styled by controls.css from the theme CSS variables). Apple: SwiftUI views in implementation/apple/Sources. Android: Compose functions in package com.clodhub.controls. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Fcontrols Requires (1) - theme (com.clodhub/theme 1.0.0): Design tokens for colours, spacing, radii, type scale and an animated background, rendered to CSS variables, Swift constants and Kotlin constants. Web: implementation/web/tokens.ts and background.ts. Apple: ThemeTypes.swift, ThemeTokens.swift, BackgroundMath.swift, ThemeBackgroundView.swift. Android: package com.clodhub.theme. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Ftheme Settings (0) No installer settings. Colours, radii and spacing come from the `theme` component (CSS variables on the web, a `ThemeSet` on Apple and Android). Depends on components: none How to use in a recipe A recipe uses it through a slot of class Controls (pkg:clod/com.clodhub/controls-class 1.1.0), naming pkg:clod/com.clodhub/controls as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (controls) to the slots that use it. It fills what the component needs (theme) from slots whose components provide it. It has no settings. - as a slot in recipe.json components: {"id":"controls","class":{"name":"pkg:clod/com.clodhub/controls-class","version":"1.1.0","digest":"be0651276d45a01b06feacd3c732310121b69538a55f2b5fc8ea48a7a3253047"},"preferred":{"name":"pkg:clod/com.clodhub/controls","version":"0.11.0"}} - in place of another component of the class: clod fetch controls@0.11.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=controls@0.11.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot controls) For developers: how an application uses it Web: import `h` from `web/dom.ts` and the builders from `web/controls.ts`, `icon` and `badgedIcon` from `web/icons.ts`, and link `web/controls.css` after the theme's `theme.css`. Mark elements a guided tour should ring with `attrs: { "data-guide": "name" }`. Apple: compile the Swift files together with the theme's Swift files; set `.controlsTheme(ThemeSet.named(...))` once near the root; use `Panel`, `PromptBanner`, `RoundIconButton`, `ToggleButton`, `HelpBulb`, `BadgedIcon`, `HelpPage`, `.pulseHalo(_:)` and `.phoneColumn()`. Android: add the Kotlin files to a Compose module with Material 3 and the extended Material icons, wrap the tree in `ControlsTheme(theme) { ... }`, and use the same names. Sound on tap, analytics and navigation are the application's: pass them in `onClick`. Accounts and services None. Local drawing only; no accounts, network or deployment. How it is checked Node tests run the builders against a small stand-in page (`tests/fake-dom.ts`): classes per variant, accessible names, disabled buttons ignoring taps, toggles asking for the opposite state, dialogs closing on Escape and on the dim area exactly once, help pages dropping empty sections, number and time text, that `controls.css` reads only variables the theme provides, and that the OpenRPC interface's icon names and theme variables equal the code's and every method not marked native-only is an exported web function. The Apple check compiles and runs `tests/apple/main.swift` for macOS (all 19 icon paths parse to points inside the icon box, and the parser's relative, absolute, H, V and smooth-curve cases; text formatting against `tests/fixtures/format.json`) and type-checks every Swift file, with the theme component's, against the iOS simulator SDK. The Android check compiles `Format.kt` and runs `tests/android/Main.kt`; kotlinc was not available where this was written, so it has not been run, and the Compose views are only compiled by the application's Gradle build. Pixel output is not compared. - `node --test tests/web.test.ts` (web, required-local; tools: node 26.5) - `python3 tests/native.py apple` (apple, platform; tools: python3 3.12, swiftc 6.4, xcrun 72) - `python3 tests/native.py android` (android, platform; tools: python3 3.12, kotlinc 2.2, java 26.0) Updates Patch updates replace files only. The component keeps no data; removal deletes its files and the application's imports of them. Tags: controls, presentation Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/controls release v0.11.0; digest sha256:2d56bdab6527ca6aafca8a71457ce52ebf44b81bf1f78e8728fbec61bd1c00aa Release: features Line 0.11: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/controls/0.11.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Images (5): https://clodhub.com/images/bb6bdaca87524d26daaa5fc5b8cb5cb581634207a6f459700866252bcf8be20b.png (web, Buttons, icon buttons, toggles, a panel and a banner in the night look); https://clodhub.com/images/60b1c8105df42e5b4f4812ca13a5ab22e1d0e64eaf19b882631081080935e8e8.png (web, The same controls in the lounge look); https://clodhub.com/images/dd4cd4bc4cdcfdfa5fb7c922a4244763fcbe11ca9264e63a1f23d8e9342b8de1.png (web, A dialog with its title, text and two actions); https://clodhub.com/images/c01c7a61177274dfb23db4f9ee9d905e88cb06c0082c028db099851755d5dba2.png (web, A help page built from titled sections, with its close button); https://clodhub.com/images/06fccba81590de6075ee6da27e1251a96257d63f1a1d53e8d0b91933324da602.png (web, Every icon in the set at 32 pixels) Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/controls/0.11.0 Bundle download: GET https://clodhub.com/api/components/controls/0.11.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/controls-class@1.1.0 be0651276d45a01b06feacd3c732310121b69538a55f2b5fc8ea48a7a3253047 com.clodhub/controls 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: shared Platforms: android, ios, macos, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: android-ui: androidx.compose.ui =1.10.0 Styles: scope global; 147 namespaces; 0 conflicts Licence: Apache-2.0; 1 upstream sources, 2 exact dependencies, 59 files (listed on the details page) Suitable for jobs: controls profile any: cost none; load none; regions any; compliance none Notes: Pure library; no provider limits apply. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/controls/issues; updates https://github.com/clodhub/controls/releases (manual) What you download controls-0.11.0.tar, from release v0.11.0 of clodhub/controls: 59 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (21): android/ (6), apple/ (9), web/ (6) - Tests (11): android/ (1), apple/ (5), fake-dom.ts, fixtures/ (2), native.py, web.test.ts - Interface documents (2): controls.json, required-theme.json - Class files: the class's interfaces and shared checks (4): controls-class/ (4) - Examples (2): consumer.ts, images.ts - Images of it as built (5): controls-lounge.png, controls-night.png, dialog.png, help-page.png, icons.png - Diagrams (5): definition.json, examples/ (1), output/ (3) - Licence notices of upstream code (1): material-design-icons/ (1) Installing copies 21 of them into the application under components/controls/: android 6, apple 9, web 6 Not included: the components that provide what it requires (com.clodhub/theme), each a separate download; the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.11.0 features (2026-11-26T11:26:04.864Z) sha256:2d56bdab6527ca6aafca8a71457ce52ebf44b81bf1f78e8728fbec61bd1c00aa Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/controls/details.txt?version=0.11.0 Page: https://clodhub.com/components/controls; JSON: https://clodhub.com/api/components/controls/0.11.0; connections diagram: https://clodhub.com/api/components/controls/0.11.0/connections.svg Copyright Level N Ltd 2026