Icon Badge
Basic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { IconBadge } from "@corew500/ui/icon-badge"
<IconBadge>Content</IconBadge>Variants
iconBadgeVariants
| Axis | Values | Default |
|---|---|---|
| variant | softoutlinesolid | soft |
| intent | defaultprimarysecondaryaccentdestructivesuccesswarninginfo | default |
| size | smdefaultlgxl | default |
| rounded | defaultfull | default |
| hoverEffect | nonescalepulseglow | none |
Variants
Loading...
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon* | enum | — | Icon element to display (required). The icon will be automatically sized based on the `size` prop. |
| variant | enum | soft | — |
| intent | enum | default | — |
| size | enum | default | — |
| rounded | enum | default | — |
| hoverEffect | enum | none | — |
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