Select

Selects allow users to choose one or more items from a list of values.

AppleApricotBananaCherryGrapeLemonMangoOrangeStrawberryWatermelon
<md-outlined-select>
  <md-option value="apple">Apple</md-option>
  <md-option value="apricot">Apricot</md-option>
  <md-option value="banana">Banana</md-option>
  <md-option value="cherry">Cherry</md-option>
  <md-option value="grape">Grape</md-option>
  <md-option value="lemon">Lemon</md-option>
  <md-option value="mango">Mango</md-option>
  <md-option value="orange">Orange</md-option>
  <md-option value="strawberry">Strawberry</md-option>
  <md-option value="watermelon">Watermelon</md-option>
</md-outlined-select>

Properties

NameTypeDefaultDescription
valueString''The value of the selected option (inherited from Select).
placeholderString''The placeholder text when no option is selected (inherited from Select).
labelString''The label text for the select field.
supportingTextString''Helper text displayed below the select field.
errorBooleanfalseWhether the select is in an error state.
openBooleanfalseWhether the select menu is open (inherited from Select).
requiredBooleanfalseWhether the select is required (inherited from Select).
quickBooleanfalseWhether to use quick mode for menu opening (inherited from Select).
alignPlacement'bottom-start'The alignment of the menu relative to the select (inherited from Select).
alignStrategyStrategy'absolute'The positioning strategy for the menu (inherited from Select).
offsetNumber0The offset distance for the menu (inherited from Select).
disabledBooleanfalseWhether the select is disabled (inherited from FormAssociated).

Methods

NameDescription
focus()Focuses the select element.
blur()Removes focus from the select element.