Ring
Signature#
SIGNATURE
<Ring
value={86}
total={100}
size={48}
lineWidth={5}
color="theme.success"
trackColor="theme.track"
/>
86% · 48pt · lineWidth={5}
Props#
Inherits StyleProps:
valuenumberRequired- Current progress value.
totalnumberDefault 100- Maximum total.
sizenumberDefault 48- Outer ring diameter in points.
lineWidthnumberDefault 5- Ring stroke width in points.
colorstringDefault "theme.accent"- Active arc color token or hex.
trackColorstringDefault "theme.track"- Background track ring color.
Example: Multi-Device Battery Rings#
TSX
<HStack spacing={16}>
<Ring value={88} size={52} lineWidth={5}
color="theme.success" />
<Ring value={64} size={52} lineWidth={5}
color="theme.blue" />
<Ring value={22} size={52} lineWidth={5}
color="theme.warning" />
</HStack>
Multi-Device Rings
In Action#
