Badge
A Badge is a non-interactive component used to highlight important information or to visually indicate the status of an item.
- Muted amberMuted amber
- Muted blueMuted blue
- Muted cyanMuted cyan
- Muted emeraldMuted emerald
- Muted fuchsiaMuted fuchsia
- Muted grayMuted gray
- Muted greenMuted green
- Muted indigoMuted indigo
- Muted limeMuted lime
- Muted orangeMuted orange
- Muted pinkMuted pink
- Muted purpleMuted purple
- Muted redMuted red
- Muted roseMuted rose
- Muted skyMuted sky
- Muted tealMuted teal
- Muted violetMuted violet
- Muted yellowMuted yellow
- Muted accentMuted accent
- Muted dangerMuted danger
- Muted neutralMuted neutral
- Muted successMuted success
- Muted warningMuted warning
import { Badge } from "@ngrok/mantle/badge";
import { GlobeHemisphereWest } from "@phosphor-icons/react/GlobeHemisphereWest";
Muted neutral
}>
Muted neutral
API Reference
The Badge
accepts the following props in addition to the standard HTML span attributes.
Prop | Type | Default | Description |
---|---|---|---|
appearance |
| — | Defines the visual style of the |
color |
| neutral | The color variant of the |
icon | ReactNode | — | An icon to render inside the badge. Will be automatically sized for you. |