Tag builder
A label with an optional remove action.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::Tag;
Construct
new(ident: impl Into<Ident>, label: impl Into<SharedString>) -> SelfOptions
Chain onto the value.
tone(tone: Tone) -> Self
on_remove(handler: impl Fn(&mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.