Design note. LangState defines UI projection contracts and component schemas, but it does not ship a concrete UI projector or renderer.
Stable contract, replaceable renderer
UIComponent describes a component type, field ID, label, placeholder, options, validation rules, required/disabled flags, and metadata. The UIComponentType enum includes text inputs, selections, dates, files, buttons, sliders, toggles, autocomplete, and custom components.
The host application decides how those data models map to React, native UI, chat controls, accessibility behavior, and design-system components.
Projection responsibilities
A useful UI projector can:- identify unresolved or low-confidence fields;
- choose a component appropriate for the field schema;
- explain why confirmation is needed;
- preserve a stable
field_idacross turns; and - return deterministic validation metadata where possible.