traffic_lights.rs
1use gpui2::{Element, IntoElement, ParentElement, ViewContext};
2use ui::{theme, traffic_lights};
3
4use crate::story::Story;
5
6#[derive(Element, Default)]
7pub struct TrafficLightsStory {}
8
9impl TrafficLightsStory {
10 fn render<V: 'static>(&mut self, _: &mut V, cx: &mut ViewContext<V>) -> impl IntoElement<V> {
11 let theme = theme(cx);
12
13 Story::container()
14 .child(Story::title_for::<_, ui::TrafficLights>())
15 .child(Story::label("Default"))
16 .child(traffic_lights())
17 }
18}