gpui-component/crates
Jason Lee f539817d9b
alert: Add banner mode and on_close to Alert. (#893)
## Break Changes

- The `Alert::new` method change to 2 args, first is `id`.

```diff
- fn new(message: impl Into<Text>) -> Self
+ fn new(id: impl Into<ElementId>, message: impl Into<Text>) -> Self
```

<img width="1120" alt="image"
src="https://github.com/user-attachments/assets/214df737-6129-4a53-8f3b-86e83bc8082b"
/>
2025-05-23 19:20:13 +08:00
..
story alert: Add banner mode and on_close to Alert. (#893) 2025-05-23 19:20:13 +08:00
ui alert: Add banner mode and on_close to Alert. (#893) 2025-05-23 19:20:13 +08:00