Interaction foundation
The bounded Base UI decision and Contour's adapter ownership.
Public reference 0.6.4
Reference text comes from the installed Contour UI 0.6.4 package. See the changelog for release details.
Versioned public source
# Interaction foundation
Decision for the 0.6.0 candidate, evaluated 14 October 2026: use **Base UI 1.9.0** for the new single-select Combobox. Existing native controls, Contour overlays, public APIs and CSS remain owned by Contour. This is a bounded decision, not a migration of every component or a claim that one foundation is universally better.
## Comparison
The same published Contour 0.5.0 host, data, CSS, nested Popover and application-owned asynchronous search were exercised with React 18.3.1 and 19.3.0 in Chromium 153. The candidates were installed from npm archives with strict peers. Each fixture was server-rendered and hydrated; refs, form reset, native modal placement, nested dismissal, stale requests, disabled options, synthetic IME events, RTL and forced colors were checked. Query cancellation belongs to the common application fixture, not to any foundation.
| Candidate | Fit and cost in this fixture | Integration work |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Base UI 1.9.0, MIT | Allowed-value Combobox, value/label collection mapping, forms and unstyled parts. Adds 6 packages / 11,574,796 installed bytes over the common baseline. | Preserve Contour layer ordering and inherited theme, use an owner-document/native-dialog portal, and define missing-value policy. Core nested Escape and native modal cases passed on both React majors. |
| Radix Popover 1.3.1 + cmdk 1.1.1, MIT | Radix supplies overlays, not a Combobox. Adds 33 packages / 1,381,618 installed bytes. | A separate command-menu selection adapter supplies value mapping, hidden form input, validation and query semantics. React 18 nested dismissal was inconsistent in this prototype; this is bounded integration evidence, not a general Radix defect claim. |
| React Aria Components 1.22.1, Apache-2.0 | Collection, localization and form facilities. Adds 13 packages / 30,671,216 installed bytes. | Controlled query/selection synchronization and portal configuration are explicit. Escape also dismissed the Contour parent in this fixture, requiring a dismissal bridge. Portal-container API migration adds adapter maintenance. |
Installed bytes include declarations and upstream components that are not necessarily downloaded by the browser. The comparison is not a zero-dependency or tree-shaking claim. The library's production size gate separately measures Button, forms, table and Combobox journeys from its packed artifact. Base UI's date-fns and timezone peers are optional and are not needed for Combobox. No second foundation or table engine becomes a core dependency.
## Ownership and limits
Contour exports a single-select string-ID API, typed native input/popup parts and its own semantic styling. Base UI owns collection navigation, active-descendant behavior and selection mechanics. Contour bridges that popup into its dismissal stack and modal/top-layer boundary. Its adapter also prevents the foundation's closed-Escape clear action so an enclosing Contour layer can dismiss without silently clearing the selected ID. Existing Dialog, SelectField and Popover contracts are not replaced with upstream types.
Stable IDs must be unique and nonempty. Labels may change or repeat. Filtering must not redefine identity. For remote search, the application retains the selected option separately from current results, cancels or ignores obsolete requests and validates its server data. An unresolved selected ID is visibly invalid and contributes an empty form value until resolved or changed; it is never invented as a valid choice. Disabled choices cannot be newly selected; disabled controls are omitted from form submission.
Automated checks do not establish VoiceOver/NVDA certification, physical IME composition, mobile keyboard behavior or all browser/assistive-technology combinations. Those remain manual release evidence gaps. A descendant popup must be tested with any third-party modal library before claiming interoperability.
## Upstream maintenance and licensing
The primary implementations are TypeScript/React with JavaScript distributions and declarations. Base UI has versioned release/migration notes and active 1.9 releases; pinning the adapter dependency makes upgrades reviewable. React Aria and Radix likewise have their own versioned releases. cmdk is a separate project with its own cadence; an older release alone does not prove it is unmaintained. Supported React peer ranges do not prove every framework or browser configuration.
Retain upstream copyright/license notices when redistributing their code. These packages retain their own licenses; Contour's authored code remains MIT. npm dependency packages include their upstream notices. We do not copy a foundation's source into Contour or claim its accessibility work as independent certification.
Primary references: [Base UI Combobox](https://base-ui.com/react/components/combobox), [releases](https://base-ui.com/react/overview/releases), [MIT license](https://github.com/mui/base-ui/blob/master/LICENSE); [Radix Popover](https://www.radix-ui.com/primitives/docs/components/popover), [MIT license](https://github.com/radix-ui/primitives/blob/main/LICENSE), [cmdk](https://github.com/dip/cmdk); [React Aria ComboBox](https://react-aria.adobe.com/ComboBox), [Apache-2.0 license](https://github.com/adobe/react-spectrum/blob/main/LICENSE).
In 0.6.1, Contour replaces the Base UI Popup wrapper with its own labelled non-modal region, composed around the public Positioner/List/Item parts. This corrects the observed input-outside-popup background hiding without changing the selection/form contract, removing ARIA or patching private internals. The listbox uses the visible field label; closed popup content is hidden. Contour completes the public Root actions close lifecycle after hiding its non-animated popup so controlled query text returns to the selected label. Whole-document strict axe and keyboard checks pass in selected Chromium/WebKit fixtures. The original unmodified upstream composition remains a separate strict failing diagnostic, documented in SUPPORT.md; manual AT review remains pending. The adapter continues to use public virtual-anchor and collision-Rect extension points to keep fixed-position coordinates correct under inherited CSS zoom.
Contour also owns synchronous input activation to avoid an obsolete upstream touch-open timer reopening a selected/closed picker. Public event cancellation/propagation hooks preserve native document observers and caller Escape vetoes. These adapters are regression-tested without exposing upstream event types in Contour props.