---
title: Alert strips
description: Two inline notices — red for what failed, amber for what wants attention — each a leading icon and a line of copy.
source: https://github.com/crabtalk/bezel/blob/main/crates/ui/src/widgets/status.rs
---

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

# Alert strips

```rust
use ui::widgets::Status;

theme.error_strip("Something went wrong.")
theme.warning_strip("Heads up, check this.")
```

Two tones, not a level enum: a strip is either the thing that failed or the thing to watch. Both return a `Div` — a dismiss control is a child you add.

## API

```rust
pub trait Status: ThemeExt {
    /// The `danger` family.
    fn error_strip(&self, message: impl Into<SharedString>) -> Div;

    /// The `warning` family.
    fn warning_strip(&self, message: impl Into<SharedString>) -> Div;

    // ...
}
```
