This PR unsupresses the warnings in `ui2` and summarily fixes them. Release Notes: - N/A
19 lines
425 B
Rust
19 lines
425 B
Rust
use gpui::{Div, Render};
|
|
use story::Story;
|
|
|
|
use crate::prelude::*;
|
|
use crate::Input;
|
|
|
|
pub struct InputStory;
|
|
|
|
impl Render for InputStory {
|
|
type Element = Div;
|
|
|
|
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element {
|
|
Story::container()
|
|
.child(Story::title_for::<Input>())
|
|
.child(Story::label("Default"))
|
|
.child(div().flex().child(Input::new("Search")))
|
|
}
|
|
}
|