Skip to main content

angular material - How to change Badge size

app.component.html

<h2 style="padding-top:25px; padding-bottom:25px;">
  Angular Material - How to change Badge size
</h2>


<span 
  matBadge="5"
  matBadgeOverlap="false"
  matBadgeSize="small">
    Small size badge 
</span>

<br/><br/><br/>
<span 
  matBadge="5"
  matBadgeOverlap="false"
  matBadgeSize="medium">
    Medium size badge
</span>

<br/><br/><br/>
<span 
  matBadge="5"
  matBadgeOverlap="false"
  matBadgeSize="large">
    Large size badge
</span>
app.module.ts [import]

import { MatBadgeModule } from '@angular/material/badge'
More Angular tutorials