lotusui the ikaito design language for Gio — desktop, mobile, web
GitHub

Progress

A determinate bar in the brand solid; negative value sweeps indeterminate.

value is clamped to [0, 1]; pass a negative value for the indeterminate sweep (self-invalidating — mount only while in flight).

Installation

Use the module import (the default), or own the source: lotusui add vendors the component into your app and lotusui update keeps the copy mergeable — see Registry.

Go
go get github.com/ikaito-com/lotusui

# or vendor the source into your app:
go run github.com/ikaito-com/lotusui/cmd/lotusui add progress

Usage

Go
lotusui.Progress(th, 0.66)

Indeterminate

Go
lotusui.Progress(th, -1)

Label

A label row above the bar is composition.

Go
lotusui.VStack(th.Space.SM, labelAndValueRow, lotusui.Progress(th, 0.66))

API

OptionTypeDescription
valuefloat32Clamped to [0, 1]; negative = the indeterminate sweep.

Every demo on this site is the real Go component compiled to WebAssembly — one gallery app, one bundle, addressed by URL hash.