Ask Your Question
2

How can the size of a mat-icon-button be modified?

asked 2023-06-18 14:15:46 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-18 14:25:02 +0000

ladyg gravatar image

The size of a mat-icon-button can be modified by using CSS. The following example demonstrates how to increase the size of a mat-icon-button to 48px:

.mat-icon-button {
  width: 48px;
  height: 48px;
}

Alternatively, you can use the "size" attribute provided by mat-icon-button. The following example demonstrates how to increase the size of a mat-icon-button to 48px:

<mat-icon-button size="large">
  <mat-icon>add</mat-icon>
</mat-icon-button>

You can use any of the available size options: "large", "medium", and "small".

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-18 14:15:46 +0000

Seen: 11 times

Last updated: Jun 18 '23