Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
68
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Purchase

Badge

The Badge directive attaches a small indicator to another element. Use it to show a count, dot, short text, or compact label on top of a button, icon, text, avatar, tab, or navigation item.

Use it for:
  • Counts: Show unread messages, notifications, tasks, updates, or pending items.
  • Small labels: Add very short text when the label belongs to a specific host element.
  • Dot indicators: Use the small size when only presence of a state matters.
  • Positioned context: Place the badge above, below, before, or after the host element with optional overlap.

Do not use Badge as a standalone block, long text label, avatar presence indicator, or full inline status pill. Use Chip, Avatar presence, Alert, or Announcement for those cases.

The NgStarter Angular Badge component lets you attach compact counts, statuses, or labels to another UI element. Use for notification counts, unread states, status dots, or small metadata on icons and avatars. It includes examples for Basic Badges.

Basic Badges

Attach a badge to another element when you need a compact count, dot, or short text label that belongs to that element.

Text with a badge (Overlap: true)4
Text with a badge (Overlap: false)4
Text with small badge1
Text with large badge1
Button with a badge on the left
Button toggles badge visibility
Icon with a badge 15