Badge
Compact native capsule pill with an optional leading SF Symbol icon — ideal for live status indicators, release versions, and category tags.
Signature#
SIGNATURE
<Badge
text="ONLINE"
icon="dot.radiowaves.left.and.right"
color="theme.success"
background="theme.faint"
fontSize={11}
/>
Capsule Badge
ONLINE
Props#
Inherits StyleProps:
textstringRequired- Label text rendered inside the capsule.
iconstringOptional- Optional leading SF Symbol identifier.
colorstringDefault "theme.ink"- Text and symbol foreground color.
backgroundstringDefault "theme.faint"- Capsule fill background.
fontSizenumberDefault 11- Font size in points.
Example: Semantic Status Pills#
TSX
<HStack spacing={8}>
<Badge text="LIVE"
icon="checkmark.circle.fill"
color="theme.success" />
<Badge text="v1.3.0"
color="theme.accent" />
<Badge text="BETA"
color="theme.warning" />
<Badge text="0 Errors"
color="theme.secondary" />
</HStack>
Semantic Status Pills
LIVE
v1.3.0
BETA
0 Errors