---
title: Tag
description: A removable chip — a token in a filter bar or a recipient field, with the ✕ wired by the caller.
source: https://github.com/crabtalk/bezel/blob/main/crates/ui/src/widgets/content.rs
---

> One page of the bezel documentation. The index is https://bezel.gallery/llms.txt

# Tag

```rust
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

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

    // ...
}
```
