Raxol.UI.Components.Display.Progress (Raxol v0.2.0)

View Source

A progress bar component for displaying completion status.

Features:

  • Customizable colors
  • Percentage display option
  • Custom width
  • Animated progress
  • Optional label

Summary

Types

props()

@type props() :: %{
  optional(:id) => String.t(),
  optional(:progress) => float(),
  optional(:width) => integer(),
  optional(:show_percentage) => boolean(),
  optional(:label) => String.t(),
  optional(:theme) => map(),
  optional(:animated) => boolean()
}

state()

@type state() :: %{
  id: String.t() | nil,
  progress: float(),
  width: integer(),
  show_percentage: boolean(),
  label: String.t() | nil,
  theme: map() | nil,
  animated: boolean(),
  animation_frame: integer(),
  last_update: integer()
}