Prop metadata and guide audit
Emitted declaration metadata and all core component guides' current contracts.
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
# Emitted prop reference and guide audit
The installed package's `.d.ts` files are the full typed API. [PUBLIC-API.md](PUBLIC-API.md) links each released symbol and defining source; [REFERENCE.md](REFERENCE.md) maps every public runtime/type/style entry to maintained guidance. Native inherited React attributes and generic overloads are not replaced by a hand-written short table.
## Generated metadata
[docs/prop-metadata.json](docs/prop-metadata.json) is extracted for all 56 existing component exports across core and the optional scene entry. It preserves all call and construct signatures, authored/inherited prop names and selected prop types/required flags. Source destructuring initializers supply explicit defaults; missing initializer is not evidence of false, empty string or a browser default. Dependent expressions remain expressions, not evaluated promises. Generic/inherited React types may be verbose; read their emitted declaration for the complete context.
Run `npm run check:reference` after build. It fails on removed documented props, changed types/defaults, reference targets and stale generated metadata. `node scripts/check-reference.mjs --write` updates only after reviewing the change. Human behavior, anatomy, form ownership, accessibility and unsupported combinations remain authored. The generator avoids inventing defaults from optional TypeScript properties or flattening an overloaded component into a misleading universal schema. Authored behavior for all 54 core component pages lives in COMPONENT-GUIDES.md and docs/component-guides.json; type discovery alone is never full-page coverage. SceneBoundary retains its class constructor rather than inventing a function signature; zero-prop displays stay zero-prop.
## Nine existing guides: current contract differences
The catalogue has its own installed release. Its older release-labelled guides must retain their original meaning until that consumer is upgraded. The current public library references below supplement them; they do not silently relabel old documentation as current.
| Component | Current contract and authored reference |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Checkbox | Native input ref and caller id; descriptions and errors merge with caller aria-describedby. indeterminate=false; application owns checked/mixed relationships. Native successful-control/reset behavior in FORMS.md. |
| SelectField | Native select ref and native value/defaultValue/onChange; generated or supplied id, external form, controlled reset restoration and merged descriptions. Options are value/label records; placeholder adds a disabled empty option. No searchable/free-text API. FORMS.md. |
| ProgressBar | Required label; value omitted means indeterminate; finite0–100 supplied by caller means determinate with aria-valuenow and rounded visible percent. tone defaults accent, alternatives success/danger. It does not estimate progress, fetch work, clamp invalid data or accept a native input ref. Unknown totals must remain unknown. |
| TextField | Native input ref/attributes; label, hint/error, optional leadingIcon/trailing and maxLength counter including0. Controlled/default ownership and external form/reset in FORMS.md; decorative adornments are not labels. |
| TextArea | Native textarea ref/attributes, visible label/help/error, maxLength counter and controlled/default/reset contracts in FORMS.md. rows defaults to3; autoResize defaults false and, when enabled, measures height from rendered content on input/render/reset. Check constrained containers. It is not a rich-text editor. |
| Dialog | Native dialog ref, controlled open/onClose, required title/children, optional description/footer; placement=center/left/right. Typed body/footer/close-button parts, focus overrides, dismissal, scroll and native top-layer ownership in OVERLAYS.md. A drawer is this placement composition, not another export. |
| Tabs | Native div ref and typed list/button/panel parts; default/controlled stable-ID selection, automatic activation and RTL arrows in COMPOSITION.md. No disabled-tab or automatic URL/router contract. |
| ToastProvider | Children plus translated region/dismiss labels. useToast().show requires provider; latest3 queue, polite region,5s timeout with hover/focus pause. No command ID/update/undo/durable inbox. HOOKS.md. |
| DropdownMenu | Native trigger props/ref and one custom ref-forwarding button via renderTrigger; controlled/default state, stable item IDs and disabled choices. Portal/collision/native-dialog integration supersedes old local-only geometry; no general submenus. OVERLAYS.md. |
The historical nine-guide audit compares the old installed declarations with the current implementation, rather than overwriting older limits. Catalogue delivery and composition follow an explicit published release and consumer verification. The public component-page contract in DOCS.md still applies before promoting a full page; a row here is a focused audit record, not a claim that every PAGE acceptance item is finished.
## Forms, anatomy and states
Native field refs target the actual input/select/textarea; Dialog targets dialog and Tabs targets its root div. ProgressBar and ToastProvider have no native ref contract. DropdownMenu exposes its trigger through triggerProps, not a root forwardRef. Labels, description IDs, aria-invalid, button types and successful controls must stay attached to the correct element. Error takes precedence over hint in Field; loading/service failure is separate application state.
Read [FORMS.md](FORMS.md), [COMPOSITION.md](COMPOSITION.md), [OVERLAYS.md](OVERLAYS.md), [COMBOBOX.md](COMBOBOX.md) and [RECIPES.md](RECIPES.md) for actual runnable sources, named/default state, form reset, keyboard/focus and optional parts. Styling and state selectors belong to STYLING.md; version-specific source and issue paths use the public reproduction. Long labels, disabled fields and both themes need final composition checks. RTL/forced-colors coverage is fixture-specific; manual assistive-technology support is recorded in SUPPORT.md rather than inferred from emitted types.
## Version and reproduction
Reference version **0.6.4**. A source version does not establish publication; check the npm registry for availability. [Versioned source](https://github.com/abuzareal/contour-ui/tree/v0.6.4/src) and [emitted type inventory](PUBLIC-API.md) describe this contract; tag links resolve after release. [Report Prop reference 0.6.4](https://github.com/abuzareal/contour-ui/issues/new?template=bug_report.yml&component=Prop%20reference&version=0.6.4), using the [public minimal reproduction](examples/reproduction) and synthetic data.