LogoLogo
  • Release Notes
  • Downloads
  • Frequently Asked Questions
  • Developers
    • Introduction
    • Color Variables
    • Font Family
    • Vanilla JS
    • React
    • Vue
    • Angular
    • RTL Support
    • Light Mode/Dark Mode
  • Foundations
    • Typography
    • Colors
    • Icons & Visuals
    • Images
    • Layout & Breakpoints
    • Utils
    • Usability Guidelines
  • Components
    • Accordions
      • Accordion
      • Accordion Groups
    • Alert
    • Attach File
    • Avatar
    • Banner Cards
    • Breadcrumbs
    • Buttons
      • Button
      • Icon Button
      • Link Button
      • Social Media Buttons
      • Split Button
    • Checkbox
      • Checkbox Input
      • Checkbox Groups
    • Chips
    • Credit Card
    • Credit Card Input Field
    • Header
    • Interactive Banner
    • Number Field
    • Menu
    • Pagination
    • Phone Number Field
    • Progress Indicators
      • Expectation Levels
      • Progress Bar
      • Progress Circle
      • Progress Semi-Circle
    • Quick Select Field
    • Radio Buttons
      • Radio Input
      • Radio Buttons Groups
    • Search Input Field
    • Segmentation
      • Segmented Controls
      • Segmented Tabs
    • Select Input Field
    • Slider
    • Steps
      • Stepper
      • Step Indicator
    • Sticky Bar
    • Tabs
    • Text Area Field
    • Text Field
    • Toggle Switch
    • Tooltip
Powered by GitBook
On this page
  • Overview
  • Usage
  • When to use this component?
  • How it works
  • Code
  • Properties
  • Anatomy
  • Anatomy Options
  • Dos and Don'ts
Export as PDF
  1. Components
  2. Progress Indicators

Progress Bar

Progress bars are used to visually indicate the progression of a task or process.

PreviousExpectation LevelsNextProgress Circle

Last updated 2 months ago

Overview

Usage

When to use this component?

Progress bars are used in interfaces to indicate the completion status of a task or process, such as file uploads, form submissions, or loading sequences. They offer immediate visual feedback, helping users understand the current progress and how much remains to be completed.

How it works

A progress bar component displays a visual indicator, typically a horizontal bar that fills as the task advances. It may include optional elements, like labels, to add context about the progress. The progress bar can be customized with different themes, label positions, and progress values to suit the application's needs.

Code

<dda-progressbar
    progress="20"
    tooltip="false"
    tooltip_position="top"
    show_percentage_text="false"
    custom_class=""
    component_mode=""
></dda-progressbar>
    <DdaProgressbar
            progress="20"
            tooltip="false"
            tooltip_position="top"
            show_percentage_text="false"
            custom_class=""
            component_mode=""
        ></DdaProgressbar>
   <DdaProgressbar
            progress="20"
            tooltip="false"
            tooltip_position="top"
            show_percentage_text="false"
            custom_class=""
            component_mode=""
        ></DdaProgressbar>
<dda-progressbar
    progress="20"
    tooltip="false"
    tooltip_position="top"
    show_percentage_text="false"
    custom_class=""
    component_mode=""
></dda-progressbar>

Properties

Property
Description
Type

component_mode

An optional prop that can be used to apply a specific mode or style to the progress bar. It allows for dynamic changes to the appearance or behavior of the component based on the mode.

string

custom_class

A string of one or more CSS classes to apply to the outer container of the progress bar. This allows for easy customization and styling of the component.

string

progress

This prop controls the progress percentage of the progress bar. It expects a number between 0 and 100, representing the current completion level of the progress bar.

number

show_percentage_text

If set to true, the percentage text will be displayed within the progress bar, showing the current progress value as text.

boolean

tooltip

Determines whether to show a tooltip with the progress percentage on hover. If set to true, a tooltip will appear displaying the current progress percentage.

boolean

tooltip_position

Specifies the position of the tooltip relative to the progress bar. It can be either 'top' (above the progress bar) or 'bottom' (below the progress bar).

"bottom" | "top"

Anatomy

Anatomy Options

Progress Fill: Represents the portion of the task or service status that has been completed, filled proportionally to the progress made. It visually indicates the extent of completion in the process.

Background Bar: The unfilled part of the progress bar that provides a reference for the remaining progress. It contrasts with the progress fill to show the current status effectively.

Percentage Label: Displays the exact percentage of the progress, providing users with a clear numerical representation of completion.

Dos and Don'ts

Dos
Don'ts

Use progress bars to show the completion status of ongoing tasks.

Don't use progress bars for static or non-progressive tasks.

Ensure the progress bar is large enough to be easily noticeable.

Don't make the progress bar too small or easy to overlook.

Label the progress bar clearly to indicate what it is tracking.

Avoid using ambiguous or unclear labels for progress bars.

Provide clear visual feedback as the progress bar fills.

Don't leave users guessing about the status of the task.

Use consistent styling and spacing across all progress bars in the application.

Don't use inconsistent styles that may confuse users.

Update the progress bar in real-time as the task progresses.

Don't use progress bars if you cannot provide real-time updates.