gpui-component/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
..
.vitepress docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
data docs: Improve docs add more details. (#1447) 2025-10-29 02:41:28 +00:00
docs scrollbar: Introduce overflow_scrollbar to adds Scrollbars to elements. (#1694) 2025-11-27 11:29:50 +00:00
public docs: Little adjust logo border and radius. (#1635) 2025-11-18 14:57:31 +08:00
src docs: Switch to use VitePress. (#1405) 2025-10-21 15:18:41 +08:00
.gitignore docs: Add Context & ElementId doc. (#1460) 2025-10-29 23:37:26 +08:00
bun.lock docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
contributors.md docs: Update docs links. 2025-10-22 22:27:49 +08:00
contributors.vue docs: Improve docs add more details. (#1447) 2025-10-29 02:41:28 +00:00
index.md docs: Remove index page warrning. 2025-11-17 10:22:01 +08:00
index.vue docs: Fix button gap. (#1608) 2025-11-14 18:46:23 +08:00
package.json docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00
postcss.config.mjs docs: Switch to use VitePress. (#1405) 2025-10-21 15:18:41 +08:00
README.md docs: Improve docs to use variable version from toml. (#1603) 2025-11-14 16:10:48 +08:00

gpui-component-docs

To install dependencies:

bun install

To run:

bun run dev

This project was created using bun init in bun v1.2.23. Bun is a fast all-in-one JavaScript runtime.