GitHub

Icon Badge

Decorative icon container with semantic color intents and hover effects

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { IconBadge } from "@corew500/ui/icon-badge"

<IconBadge>Content</IconBadge>

Variants

iconBadgeVariants

AxisValuesDefault
variant
softoutlinesolid
soft
intent
defaultprimarysecondaryaccentdestructivesuccesswarninginfo
default
size
smdefaultlgxl
default
rounded
defaultfull
default
hoverEffect
nonescalepulseglow
none

Variants

Loading...

API Reference

Props

PropTypeDefaultDescription
icon*enumIcon element to display (required). The icon will be automatically sized based on the `size` prop.
variantenumsoft
intentenumdefault
sizeenumdefault
roundedenumdefault
hoverEffectenumnone

Accessibility

Screen Readers

  • When used in interactive contexts (e.g., inside a button), ensure parent has proper ARIA

Additional

  • - Icons are purely decorative - the `span` wrapper is not interactive by default
  • Color alone does not convey meaning - pair with text labels for clarity

Localization

Translatable Content

  • - Component is purely visual; no text content to translate
  • If using in interactive context, ensure parent provides translated accessible name

Related

Related Components