input.rs

 1use gpui::{Div, Render};
 2
 3use crate::prelude::*;
 4use crate::{Input, Story};
 5
 6pub struct InputStory;
 7
 8impl Render for InputStory {
 9    type Element = Div;
10
11    fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
12        Story::container(cx)
13            .child(Story::title_for::<Input>(cx))
14            .child(Story::label(cx, "Default"))
15            .child(div().flex().child(Input::new("Search")))
16    }
17}