Badge builder
A compact status label.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::Badge;
Construct
new(label: impl Into<SharedString>) -> SelfOptions
Chain onto the value.
id(ident: impl Into<Ident>) -> Self
tone(tone: Tone) -> Self
neutral() -> Self
accent() -> Self
success() -> Self
warning() -> Self
danger() -> Self
info() -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.