prelude.rs

 1//! The prelude of this crate. When building UI in Zed you almost always want to import this.
 2
 3pub use gpui::prelude::*;
 4pub use gpui::{
 5    div, px, relative, rems, AbsoluteLength, AnyElement, App, Context, DefiniteLength, Div,
 6    Element, ElementId, InteractiveElement, ParentElement, Pixels, Rems, RenderOnce, SharedString,
 7    Styled, Window,
 8};
 9
10pub use component::{
11    example_group, example_group_with_title, single_example, ComponentPreview, ComponentScope,
12};
13pub use ui_macros::IntoComponent;
14
15pub use crate::animation::{AnimationDirection, AnimationDuration, DefaultAnimations};
16pub use crate::styles::{rems_from_px, vh, vw, PlatformStyle, StyledTypography, TextSize};
17pub use crate::traits::clickable::*;
18pub use crate::traits::disableable::*;
19pub use crate::traits::fixed::*;
20pub use crate::traits::styled_ext::*;
21pub use crate::traits::toggleable::*;
22pub use crate::traits::visible_on_hover::*;
23pub use crate::DynamicSpacing;
24pub use crate::{h_container, h_flex, v_container, v_flex};
25pub use crate::{
26    h_group, h_group_lg, h_group_sm, h_group_xl, v_group, v_group_lg, v_group_sm, v_group_xl,
27};
28pub use crate::{Button, ButtonSize, ButtonStyle, IconButton, SelectableButton};
29pub use crate::{ButtonCommon, Color};
30pub use crate::{Headline, HeadlineSize};
31pub use crate::{Icon, IconName, IconPosition, IconSize};
32pub use crate::{Label, LabelCommon, LabelSize, LineHeightStyle};
33pub use theme::ActiveTheme;