gpui-component/docs
Jason Lee 4ded78ed30
dock: Refactor Panel trait to has &mut self and &mut Context<Self>. (#1716)
Continue #1712, #1713

## Description

Also change the `Panel` trait to has `&mut self` and `&mut
Context<Self>`.

## Break Changes

The methods `title`, `title_prefix`, `set_zoomed`, `set_active`,
`dropdown_menu`, `toolbar_buttons`, `on_added_to`, `on_removed` has
changed `&self` to `&mut self`, and `cx: &App` to `cx: &mut
Context<Self>`.

```diff
- fn title(&self, window: &Window, cx: &App) -> AnyElement
+ fn title(&mut self, window: &Window, cx: &mut Context<Self>) -> AnyElement
```
2025-12-01 17:57:18 +08:00
..
.vitepress docs: Add icons for page background to website. (#1701) 2025-11-28 07:14:43 +00:00
data docs: Improve docs add more details. (#1447) 2025-10-29 02:41:28 +00:00
docs dock: Refactor Panel trait to has &mut self and &mut Context<Self>. (#1716) 2025-12-01 17:57:18 +08:00
public docs: Add icons for page background to website. (#1701) 2025-11-28 07:14:43 +00: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: Add icons for page background to website. (#1701) 2025-11-28 07:14:43 +00:00
contributors.vue docs: Add icons for page background to website. (#1701) 2025-11-28 07:14:43 +00:00
index.md docs: Remove index page warrning. 2025-11-17 10:22:01 +08:00
index.vue docs: Add icons for page background to website. (#1701) 2025-11-28 07:14:43 +00: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.