Skip to main content

Combo


The Combo element renders a dropdown (select) field. Use this element to present a list of predefined options where the user selects only one. Combo supports read-only behavior, validation states, icon labeling, and event handling.

Dropdown preview with a selectable field label

Properties

PropertyValueDescription
TypeComboUI component type
Identifier6Unique element ID
GroupFieldPart of the Field group
ValueYStores the selected value
MandatoryYField must be completed if required
ErrorYSupports validation errors
MinNot applicable
MaxNot defined for static dropdowns
Read-onlyYCan render as non-editable
ListYDisplays values in a dropdown list
Text, IconYLabel can include text or icon
ChildrenDoes not contain nested elements
EventYEmits change events when selection updates
ShadeYBackground style changes based on state

Usage Example

<Combo
label="Select Location"
options={[
{ label: "Clinic A", value: "clinic-a" },
{ label: "Clinic B", value: "clinic-b" }
]}
onChange={handleChange}
/>

SDK Integration

The Walk-in flow uses this element to determine doctor and location parameters for QR code generation.

Method: walk-in

When a user selects a doctor (profile-id) and a supported location (location_id), the system validates the combination and generates a QR code for the patient.


Example UI Placement

LevelIDTypeValueDescription
1profile-idComboSelect doctorDoctor selection dropdown
1location_idComboSelect locationLocation selection dropdown

Notes

  • Use only when selecting a single value from a finite list.
  • Avoid complex logic inside option labels.
  • Combine with validation and helper text when the list is long.