mirror of
https://github.com/librekeys/gpui-component.git
synced 2026-07-28 08:00:57 -07:00
## Summary - Add `SidebarCollapsible` modes (`Icon`, `Offcanvas`, `None`) while preserving bool compatibility. - Match shadcn behavior: icon-width collapse, offcanvas slide-out with post-animation unmounting, and no-op `None` mode. - Add dedicated examples and refine the Story sidebar mode controls, right-side layout, and animation id scoping. ## Tests - `rustfmt --check crates/ui/src/sidebar/mod.rs crates/story/src/stories/sidebar_story.rs examples/sidebar_icon/src/main.rs` - `cargo test -p gpui-component sidebar::tests --lib` - `cargo check -p gpui-component-story -p gpui-component-story-web -p sidebar_icon -p sidebar_offcanvas -p sidebar_none` - `cargo clippy -p gpui-component --lib -p gpui-component-story -p sidebar_icon -p sidebar_offcanvas -p sidebar_none -- -D warnings` --------- Co-authored-by: Floyd Wang <gassnake999@gmail.com>