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 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
lotusui.Progress(th, 0.66)
Indeterminate
lotusui.Progress(th, -1)
Label
A label row above the bar is composition.
lotusui.VStack(th.Space.SM, labelAndValueRow, lotusui.Progress(th, 0.66))
API
| Option | Type | Description |
|---|---|---|
value | float32 | Clamped to [0, 1]; negative = the indeterminate sweep. |