bezel

Components / Content

Tag

Markdown crates/ui/src/widgets/content.rs docs.rs

use ui::widgets::Content;

theme.tag("rust")

The ✕ is painted, not wired: only the caller knows what removing a token means for the list behind it.

API

pub trait Content: ThemeExt {
    /// The chip. Sets `self_start`, so a column does not stretch it.
    fn tag(&self, label: impl Into<SharedString>) -> Div;

    // ...
}
Tag