
This PR mainlines the current state of new GPUI2-based UI from the `gpui2-ui` branch. Release Notes: - N/A --------- Co-authored-by: Nate Butler <iamnbutler@gmail.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Co-authored-by: Nate <nate@zed.dev> Co-authored-by: Mikayla <mikayla@zed.dev>
16 lines
458 B
Rust
16 lines
458 B
Rust
use ui::prelude::*;
|
|
use ui::CollabPanel;
|
|
|
|
use crate::story::Story;
|
|
|
|
#[derive(Element, Default)]
|
|
pub struct CollabPanelStory {}
|
|
|
|
impl CollabPanelStory {
|
|
fn render<V: 'static>(&mut self, _: &mut V, cx: &mut ViewContext<V>) -> impl IntoElement<V> {
|
|
Story::container(cx)
|
|
.child(Story::title_for::<_, CollabPanel<V>>(cx))
|
|
.child(Story::label(cx, "Default"))
|
|
.child(CollabPanel::new(ScrollState::default()))
|
|
}
|
|
}
|