Skip to main content

progress_bar

ProgressBar

from dara.components.common.progress_bar import ProgressBar

class ProgressBar(ContentComponent)

ProgressBar

A Progress Bar component is the basic component for showing a progress bar. It accepts the progress in percentage and display it. The progress should be a number between 0 and 100.

A ProgressBar component can be created like so:


from dara.core import Variable
from dara.components.common import ProgressBar

ProgressBar(
progress=Variable(20)
)

Arguments:

  • progress: The progress to be shown in percentage.
  • small: Optional flag for showing the progress bar as a smaller strip.
  • color: Optional color property for the progress bar, this should be the hex value of the color.

Attributes

  • progress: Union[int, NonDataVariable]
  • small: bool
  • color: Optional[str]