gpui-component/crates/story
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
..
examples example: Add resizable feature to HTML, Markdown example. (#872) 2025-05-20 18:25:14 +08:00
src alert: Add banner mode and on_close to Alert. (#893) 2025-05-23 19:20:13 +08:00
Cargo.toml gallery: Redesign the gallery. (#797) 2025-04-17 17:12:48 +08:00