---
title: Avatar
description: A circular initials tile — the fallback every avatar needs, and often the whole thing on a monochrome surface.
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

# Avatar

```rust
use ui::widgets::Content;

theme.avatar("TC")
theme.avatar("K")
```

No image variant: that is `div().rounded_full().overflow_hidden()` around a gpui `img`, and where the image comes from belongs to the app.

## API

```rust
pub trait Content: ThemeExt {
    /// One or two initials, 28px.
    fn avatar(&self, initials: impl Into<SharedString>) -> Div;

    // ...
}
```
