Logo
NeoArc Studio

Control Type Inference

Understand how NeoArc infers the appropriate UI control type from data shapes. Learn about the available control types and how to override the automatic selection.

When you bind a UI control to a field, NeoArc examines the field's data type, constraints, and metadata to infer the most appropriate control type. This saves you from manually choosing a control for every field, while still allowing overrides when the automatic choice is not ideal.

How Inference Works

The inference engine evaluates several factors in order of priority:

Control Types

ControlInferred WhenExample Fields
Text InputString without specialisationname, title, description
Text AreaString with maxLength > 256 or multiline hintbio, notes, comments
Number InputInteger or number typeage, quantity, price
ToggleBoolean typeisActive, isPublished
CheckboxBoolean with explicit checkbox hintagreeToTerms
Date PickerString with date specialisationbirthDate, startDate
Date-Time PickerString with date-time specialisationcreatedAt, scheduledAt
Email InputString with email specialisationemail, contactEmail
URL InputString with uri specialisationwebsite, profileUrl
DropdownEnum type or string with few allowed valuesstatus, category, role
Radio GroupEnum with 4 or fewer optionspriority, size
Multi-SelectArray of enum valuestags, permissions
TableArray of objectsitems, addresses, contacts
Rich Text EditorString with rich-text hintcontent, body
File UploadString with binary or file specialisationavatar, attachment

Overriding the Inferred Type

You can override the inferred control type at any time:

Next Steps