References
Usage Rules
Although we have mat-select
available for use, we should instead use single-select
for all dropdown instances. Rationale for always using search select:
Dropdowns with multiple options would benefit from a search function to more easily be able to find desired options
Dropdowns with ~4 or less options should not be used, mat-radio should be used to more easily be able to view all available options
Dropdowns with boolean options (e.g. yes/no, on/off) should not be used, mat-slide-toggle would function better to more obviously imply a boolean function
Example
Input
Dropdown
Usage
Structure
<single-select label="Label" required="true" ... ></single-select>
Container
Every search dropdown should use the
single-select
container, which formats its' content styles and spacing.
Label
Use
label=””
for the input label
Required
Use
required=”true”
orrequired=”false”
Additional Options
Various other options available (see live examples)