UI MarCom

Select Box Stable

A Select Box is an input field that provides a list of options from which the user chooses a value. They are typically used in forms.

<uimc-select 
  label="" 
  info=""
  items='[]'>
</uimc-select>

AttributeDescriptionValuesDefault
labelLabel text inside the select box
infoHint text below the select box should change according to the validity state
validReflects valid state
invalidReflects invalid state
disabledDisables interactions on this element
itemsOptions to select fromArray of Objects

CallbackArgumentDescription
onChangeeventCallback function that gets triggered if the state of the component changes

Select box

<uimc-select 
  label="Fruit…" 
  info="It’s your choice"
  items='[{  "value": "Lime", "name": "Lime" },{  "value": "Orange", "name": "Orange" },{  "value": "Banana", "name": "Banana" }]'>
</uimc-select>

Select box valid state

<uimc-select 
  valid
  label="Fruit…" 
  info="Yes, orange is a great choice."
  items='[{  "value": "Lime", "name": "Lime" },{ "isSelected": true, "value": "Orange", "name": "Orange" },{  "value": "Banana", "name": "Banana" }]'>
</uimc-select>

Select box invalid state

<uimc-select 
  invalid
  label="Fruit…" 
  info="No, this is not a fruit."
  items='[{  "value": "Lime", "name": "Lime" },{  "value": "Orange", "name": "Orange" },{ "isSelected": true, "value": "Red", "name": "Red" }]'>
</uimc-select>