选择框 Select

select 的范例
Select with custom trigger text
Disabled select

mat-select

native html select

Select with a custom ErrorStateMatcher

mat-select

Errors appear instantly!

native html select

Select in a form

mat-select

Selected food:

native html select

Selected car:

Testing with MatSelectHarness
This example contains tests. Open in Stackblitz to run the tests.
Select with form field features

mat select

native html select

You can pick up your favorite car here
Basic select with initial value and no form

Basic mat-select with initial value

You selected: tacos-2

Basic native select with initial value

You selected: ford

Select with multiple selection
Select with no option ripple
Select with option groups

mat-select

native html select

Basic select

Basic mat-select

Basic native select

Select with custom panel styling
Select in a reactive form

mat-select

Selected: tacos-2

Native select

Selected: saab

Select with reset option

mat-select

native html select

Select with 2-way value binding

You selected: option2