A
A
Alex102142021-05-04 15:58:20
Angular
Alex10214, 2021-05-04 15:58:20

How to custom style Select from Angular Material?

Hello everyone, I have a typical select taken from Angular Material and I want to style it custom, but I don’t understand how to do it right. There are many classes in the task inspector. Can someone tell me how to hang their classes and styles? Or can someone share a code example. I will be grateful for any help.

<mat-form-field class="custom" appearance="fill" >
        <mat-label></mat-label>
        <mat-select>
          <mat-option>

          </mat-option>
        </mat-select>
      </mat-form-field>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GF, 2021-05-04
@fomenkogregory

you look for the necessary class in the inspector, you rewrite it with your own. For example
.custom {тут всё}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question