gpui-component/docs
Jason Lee 4a3f520c5f
scrollbar: Manage ScrollbarState in Scrollbar internal. (#1690)
This PR to improve the Scrollbar API to manage the state in the
internal.

## Break Changes

Describe any breaking changes introduced by this pull request. If none,
remove this section.

- Removed `scrollbar_state` argument from `Scrollbar::new`,
`Scrollbar::both`, `Scrollbar::vertical` and `Scrollbar::horizontal`.

```diff
- Scrollbar::horizontal(&self.scrollbar_state, &self.scroll_handle)
+ Scrollbar::horizontal(&self.scroll_handle)

- Scrollbar::vertical(&self.scrollbar_state, &self.scroll_handle)
+ Scrollbar::vertical(&self.scroll_handle)
```

- Change `struct ScrollbarState` to private, we not need this not.

```diff
- pub struct ScrollbarState {
+ struct ScrollbarState {
```

- Renamed `trait ScrollHandleOffsetable` to `trait ScrollbarHanle`.

```diff
- pub trait ScrollHandleOffsetable {
+ pub trait ScrollbarHanle {
```

- Removed `Scrollbar::both`, now use `Scrollbar::new` instead.

```diff
- Scrollbar::both(&scroll_handle)
+ Scrollbar::new(&scroll_handle)
```
2025-11-27 11:39:58 +08: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: Manage ScrollbarState in Scrollbar internal. (#1690) 2025-11-27 11:39:58 +08: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.