API reference
@salmonui/notifications/badge
10 exported symbols: 1 function, 1 interface and 8 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/notifications/badge';Functions
BadgeBadge. Inline (<Badge tone="success">Paid</Badge>) it is a text label, or a status with variant="dot"; with content or dot it overlays its children at a logica…
Interfaces
BadgeInlinePropsInline mode: children is the badge text.
Types
BadgeOverlap'circular' pulls the overlay inward for round hosts such as avatars.BadgeOverlayPropsOverlay mode, selected by the presence of the content or dot prop. content of null, undefined, false or '' hides the badge like invisible (0 shows).BadgePlacementCorner of the host an overlay badge sits on; logical, mirrored under dir="rtl".BadgePropsBadgeRenderPropsProps render receives: class name, data-* hooks, style, every other DOM prop, ref and children. Spread all of them onto the returned element.BadgeShapeCorner shape.BadgeToneColor role: the neutral scale plus the five theme seeds.BadgeVariantVisual weight. 'dot' (inline mode only) is a status label: a small decorative dot in the tone color before plain text, as in a table cell.