Progress Bar
Used to show progress visually.
Updates
percentagenumber (0.0)- A value between
0.0and1.0 showLabelboolean (false)- Adds the percentage as text to the progress bar
ariaLabelstring (nil)- A value to set the aria label (used for accessibility/screen readers)
isStripedboolean (false)- If the progress bar should have a stripped animation added to it.
colorBSColor (nil)- The color of the progress bar
Examples
{
percentage = 0.0,
showLabel = true,
color = "success",
}
local p = 0.33
{
percentage = p,
showLabel = true,
ariaLabel = "Battle Royal map progress",
isStripped = isCircleShrinking(),
color = p < 0.7 and "success" or p < 0.9 and "warning" else "error",
}