gpui-component/docs/docs
Jason Lee 118a0f500e
scrollbar: Introduce overflow_scrollbar to adds Scrollbars to elements. (#1694)
## Description

1. Add `overflow_scrollbar`, `overflow_y_scrollbar`, `overflow_x_scroll`
to GPUI elements to let them has scrollbars. It is almost like the
`overscroll` but adds the Scrollbar.
2. And adjust the display scrollbar of margining 4px of the container.
3. Add `scrollbar`, `vertical_scrollbar`, `horizontal_scrollbar` with
your own scroll handle.

<img width="1181" height="911" alt="image"
src="https://github.com/user-attachments/assets/8b02cd54-d527-4f22-b9be-f762ede22122"
/>

## Break Changes

- There `Scrollable` trait and it `scrollable` method has been removed.

```diff
- div().id("contents").scrollable(Axis::Vertical)
+ div().id("contents").overflow_y_scrollbar()
```
2025-11-27 11:29:50 +00:00
..
components scrollbar: Introduce overflow_scrollbar to adds Scrollbars to elements. (#1694) 2025-11-27 11:29:50 +00:00
assets.md assets: Move assets files into crates/assets folder for crate publish. (#1609) 2025-11-14 19:00:29 +08:00
context.md docs: Add Context & ElementId doc. (#1460) 2025-10-29 23:37:26 +08:00
element_id.md docs: Add Context & ElementId doc. (#1460) 2025-10-29 23:37:26 +08:00
getting-started.md docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
index.md docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
installation.md docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
root.md example: Follow up #1594 missed changes. (#1595) 2025-11-14 11:22:55 +08:00
theme.md docs: Fix theme_name type (#1614) 2025-11-17 09:56:24 +08:00