v1.2.0

Select

Select components are used for collecting user provided information from a list of options.

Variants

<me-select variant="outlined" label="Age"> <option value="10">Ten</option> <option value="20">Twenty</option> <option value="30">Thirty</option> </me-select>

With Default Value

With Option Groups

<me-select label="Category"> <optgroup label="Fruits"> <option value="apple">Apple</option> <option value="banana">Banana</option> </optgroup> </me-select>

Helper Text & Error

Disabled

Color

API

AttributeTypeDefaultDescription
variantoutlined | filled | standardoutlinedThe visual style variant.
labelstringThe floating label text.
valuestringThe selected value.
helper-textstringHelper or error text below the field.
errorbooleanfalsePuts the field in error state.
disabledbooleanfalseDisables the select.
requiredbooleanfalseRequired for form validation.
colorprimary | secondaryprimaryThe active/focus color.
namestringForm field name.
multiplebooleanfalseAllow multiple selections.

Slots

SlotDescription
(default)<option> and <optgroup> elements.

Events

EventDescription
changeFired when the selected value changes.