howdy/ui/progress

Progress bars: how much of some work is done, or that work is under way when how much is unknown.

progress.progress(label: "Uploading report.pdf", value: 40, max: 100)
progress.indeterminate(label: "Preparing export")

Values

pub fn bar_class() -> css.Class
pub fn classes() -> List(css.Class)

Every class this module uses, for howdy/ui/export.

pub fn indeterminate(label label: String) -> element.Element(msg)

A bar for work whose size is not known yet. It sweeps while the work goes on, and holds still for people who ask for reduced motion.

pub fn progress(
  label label: String,
  value value: Int,
  max max: Int,
) -> element.Element(msg)

A bar filled value out of max. label names it for screen readers.

pub fn rules() -> List(#(String, String))

The CSS this module registers with style.rule, for howdy/ui/export.

pub fn sweep_class() -> css.Class
pub fn track_class() -> css.Class
✨ Search Document