Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Progress Bar

The Avonni Progress Bar component visualizes completion toward a target value, with configurable orientation, style, value display, an optional avatar, and an optional pin indicator.

Overview

Use the Progress Bar to communicate progress at a glance — from simple percentage fields to values computed from multiple Salesforce records via aggregate queries.

Configuration

To configure the Progress Bar, select it on the canvas. The configuration panel opens on the right. The sections below mirror its properties from top to bottom.

The Edit Progress Bar panel showing Label, Orientation, Variant, Theme, Size, Thickness and Textured, then the Value group
The Properties tab: the Appearance settings, then the Value group. Alternative Text sits behind Advanced Options.

Appearance

Label

A text label displayed above or alongside the bar to describe what it measures.

Orientation

Controls the direction of the bar. Horizontal (default) draws the bar left-to-right; Vertical draws it bottom-to-top.

Variant

Changes the shape of the bar ends. Base (default) uses straight ends; Rounded uses rounded ends.

Two progress bars at 65 percent, one with square ends and one with rounded ends
Base on the left, Rounded on the right.

Theme

Sets the color theme of the filled portion of the bar. Available themes: Base (default), Success, Inverse, Alt Inverse, Warning, Info, Error, and Offline.

Eight progress bars at 65 percent, one per theme: base, success, inverse, alt inverse, warning, info, error and offline
The eight themes. Only the filled portion changes colour, so the unfilled track stays the same in every one.

Size

Controls the overall width of the bar. Options: X Small, Small, Medium, Large, and Full (default). Full stretches the bar to fill its container.

Thickness

Controls the height (or width, for vertical) of the bar track. Options: X Small, Small, Medium (default), and Large.

Textured

When enabled, applies a texture pattern to the bar background.

Alternative Text

Accessible description of the component, read by screen readers. Available in Advanced options.

Value

Value

The current progress value. You can set it in three ways:

Option
Description
Best For

Mapped

Link directly to a Salesforce field or a variable.

Simple scenarios where one field represents progress (e.g., a percentage field).

Advanced (Formula)

Define a custom formula combining multiple fields or variables.

Complex calculations or weighted progress across different criteria.

Query

Run an aggregate query (AVG, SUM, MAX, etc.) to calculate the value from multiple records.

Aggregating data across records (e.g., average task completion for a project).

Example scenarios

  • Sales Goal Progress:

    • Mapped: Link the bar to an "Amount Closed" field.

    • Advanced: Calculate progress as "Amount Closed" divided by "Quota."

    • Query: Average the "Percent Complete" of all Opportunities in a specific stage.

  • Customer Satisfaction:

    • Mapped: Display a "Customer Satisfaction Score" field.

    • Advanced: Combine multiple survey response fields into a composite score.

    • Query: Find the average rating across all customer reviews for a product.

Total

The number that represents 100% completion. Defaults to 100. Adjust this when your value field does not already represent a percentage — for example, if your value field tracks "tasks completed" and there are 20 total tasks, set Total to 20.

Show Value

When enabled, the computed percentage is displayed as text next to the bar.

Value Position

Where the text value appears relative to the bar. Options: Top Right (default), Top Left, Bottom Right, Bottom Left, Left, and Right. Requires Show Value to be enabled. Left and Right apply only when Orientation is Horizontal.

Six progress bars showing the value at top right, top left, left, right, bottom right and bottom left
The six positions, each bar captioned with its own value.

Value Prefix

Text displayed immediately before the numeric value (e.g., "$"). Requires Show Value to be enabled.

Value Suffix

Text displayed immediately after the numeric value (e.g., "%"). Requires Show Value to be enabled.

Avatar

An optional avatar displayed alongside the bar — useful for associating a person, team, or record with the progress metric.

Four progress bars with an avatar: circular on the left, circular on the right, square on the left, and initials with no image
The avatar Variant and Position, and the initials shown when no image is set.
Setting
Description

Variant

Shape of the avatar: Circle or Square (default).

Initials

Text initials shown when no image or icon is set.

Icon Name

A Lightning Design System icon used as the avatar fallback.

Size

Size of the avatar: X-Small, Small, Medium (default), Large, X-Large, Xx-Large.

Image

URL or uploaded image file to display as the avatar.

Alternative Text

Accessible description of the avatar image.

Position

Where the avatar appears relative to the bar: Left (default) or Right.

Pin

A pin is a marker that appears at the current value position on the bar track.

Show Pin

When enabled, a pin indicator is shown at the current progress position, carrying the current value.

The pin requires Show Value to be enabled as well. With Show Pin on and Show Value off, neither the pin nor the value appears. With both on, the pin replaces the plain value text rather than sitting beside it, so Value Position has no effect while the pin is showing.

Four progress bars with a pin: a rectangle pin and a circle pin on horizontal bars, and a vertical bar with the pin on the left and on the right
The two pin types on a horizontal bar, and the pin Position on a vertical one.

Type

Shape of the pin: Rectangle (default) or Circle. Requires Show Pin to be enabled.

Position

Side of the vertical bar where the pin label appears: Left or Right (default). Only applies when Orientation is set to Vertical. Requires Show Pin to be enabled.

Set Component Visibility

All components support conditional visibility — see Component Visibility.

Styling

The Style tab lets you tailor the progress bar's appearance. Configure it from the Style tab of the Edit Progress Bar panel.

Controls the outer spacing around the progress bar, creating space between it and other elements.

  • Top / Right / Bottom / Left: Adjust the space on each side.

Controls the inner spacing between the progress bar's content and its border.

  • Top / Right / Bottom / Left: Adjust the inner spacing on each side.

Customizes the border surrounding the progress bar.

  • Color: Set the border color.

  • Size: Adjust the border thickness.

  • Style: Choose a border style (e.g. solid, dashed, dotted).

  • Radius: Control the roundness of the corners.

Controls the progress bar's dimensions.

  • Width / Height: Set fixed dimensions.

  • Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.

  • Overflow: Control how content that exceeds the bounds is handled.

Styles the bar label text.

  • Color: Set the label text color.

  • Font Size / Font Style / Font Weight: Control the label typography.

  • Line Clamp: Limit the label to a maximum number of lines.

Styles the displayed numeric value.

  • Color: Set the value text color.

  • Font Size / Font Style / Font Weight: Control the value typography.

Styles the progress bar's avatar.

  • Image Object Fit: Control how the avatar image fills its bounds.

Styles the value pin shown along the bar.

  • Background Color / Text Color: Set the pin colors.

  • Font Style / Font Weight: Control the pin typography.

Customizes the bar track and fill (set per theme: Base, Info, Success, Warning, Error, Offline, Inverse, Alt Inverse).

  • Color: Set the bar track (background) color.

  • Completed Color: Set the fill color of the completed portion, including gradients.

Applying a gradient to the bar

  1. Open the Style tab for the progress bar.

  2. Find the Bar section and locate the Completed color setting.

  3. Set the Gradient Angle to choose the direction.

  4. Add Gradient Colors and assign each color a Position (0%–100%).

Example: A gradient from red (0%) to yellow (50%) to green (100%) gives a traffic-light effect that makes completion status immediately visible.

Output Variables

The Progress Bar exposes an output variable you can reference elsewhere on the page after the component renders.

Others

Output variable
Type
What it returns

Percentage

Number

The current value of the progress bar expressed as a number between 0 and 100.

Example: After loading a record, use Percentage in a conditional-visibility rule on a badge component to show a "Complete" badge only when the value reaches 100.

Last updated

Was this helpful?