# `ShadcnUI.Components.Foundation.Badge`
[🔗](https://github.com/pcharbon70/shadcn_ui/blob/main/lib/shadcn_ui/components/foundation/badge.ex#L1)

Compact passive labels with closed shadcn-style variants.

Badge renders one noninteractive `span`. Its text may communicate status, but
selection, links, dismissal, lifecycle, and other behavior belong to the
surrounding application markup.

# `badge`

Renders a passive inline badge.

Use an application-owned link or button when the content must navigate,
activate, select, or dismiss. Badge deliberately rejects interactive globals
instead of making a `span` imitate a control.

## Attributes

* `variant` (`:atom`) - Defaults to `:default`. Must be one of `:default`, `:secondary`, `:destructive`, or `:outline`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `inner_block` (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
