# Badge (@salmonui/notifications/badge)

> The Badge function of @salmonui/notifications/badge: Badge. Inline (&lt;Badge tone="success">Paid&lt;/Badge>) it is a text label, or a status with variant="dot"; with content or dot it overlays its children at a logical corner. Styling hooks: .salmon-badge with data-tone, data-variant, data-shape, data-dot, data-invisible; overlay hosts are .salmon-badge-host with data-placement and data-overlap. To fit the 0.5 KB budget a data-* hook is written only when its prop is set; the stylesheet applies the defaults when it is absent.

Canonical: https://salmonui.dev/docs/reference/notifications/badge/Badge

```ts
import { Badge } from '@salmonui/notifications/badge';
```

Entry index: https://salmonui.dev/docs/reference/notifications/badge (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/notifications/badge.md).

## Reference

Kind: function

```ts
function Badge(props: BadgeProps): ReactElement;
```

Badge. 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 logical corner.
Styling hooks: `.salmon-badge` with `data-tone`, `data-variant`,
`data-shape`, `data-dot`, `data-invisible`; overlay hosts are
`.salmon-badge-host` with `data-placement` and `data-overlap`. To fit the
0.5 KB budget a `data-*` hook is written only when its prop is set; the
stylesheet applies the defaults when it is absent.
