{#- chirp-ui: Progress Bar component Visual progress indicator with configurable styles. Usage: from "chirpui/progress.html" import progress_bar progress_bar(value=60, max=100) progress_bar(value=75, max=100, color="#78c850") -#} {% def progress_bar(value, max=100, label=none, variant="gold", size="md", cls="", color=none) %} {% set resolved = color | resolve_color %} {% set pb_variant = ("custom" if resolved else (variant | validate_variant_block("progress-bar", "gold"))) %} {% set size = size | validate_variant(("sm", "md", "lg"), "md") %}
{% end %}