Components / Badge

Badge

Compact status or metadata content with neutral variants and an optional icon slot.

ReadyIn reviewDraft
example.component.html
html
<aevko-badge variant="muted">
  In review
</aevko-badge>

Installation

npx aevko-ui@latest add badge --yes

Source ownership

Customization

Choose a neutral variant, project any icon implementation and override compact spacing through local CSS.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.
Compose freelySlots accept native elements, SVG, images or Angular components.

API reference

Property or slotTypeDefaultDescription
variant'default' | 'outline' | 'muted' | 'danger''default'Visual status hierarchy.
aevkoBadgeIconprojected slotemptyOptional leading SVG, image or component.
contentprojected contentrequiredVisible status or metadata label.

Accessibility contract

Accessibility

Included behavior

  • The badge adds no live semantics; its text remains available to assistive technology.

Your responsibility

Keep meaningful status text in the badge and do not rely on its color or icon alone.

Back to all components