Badge component

Badge Generator

Content
Sizing
12px
12px
4px
99px
Colors
New Feature

Preview on different backgrounds:

html
<span class="badge">New Feature</span>
css
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 99px;
  background-color: #3b82f6;
  color: #ffffff;
}

GET MORE FROM THIS RESOURCE

Use a badge for meaningful secondary information

A badge can identify a category, status, or count without taking attention away from the main content. Its meaning should be understandable in words. A green dot alone does not explain whether something is saved, available, or approved.

Use the generator to establish the appearance, then adapt the exported markup and styles to your application. A preview demonstrates the visual treatment; it does not certify your final interaction. Check the implementation with real content, a narrow screen, and keyboard input before publishing.

Try the component in the code editor →