allui/
prelude.rs

1//! Convenient imports for Allui users.
2//!
3//! # Example
4//!
5//! ```rust,ignore
6//! use allui::prelude::*;
7//! ```
8
9// Layout primitives
10pub use crate::layout::{
11    Alignment, EmptyView, ForEach, Grid, GridItem, GridItemSize, GridRow, Group, HStack,
12    HorizontalAlignment, If, IfLet, LazyHGrid, LazyHStack, LazyVGrid, LazyVStack, List, ListStyle,
13    ScrollAxes, ScrollView, Section, Spacer, VStack, VerticalAlignment, VirtualListScrollHandle,
14    ZStack,
15};
16
17// Display components
18pub use crate::components::{
19    Button, ButtonStyle, Divider, Image, Label, Link, ProgressView, ProgressViewStyle, Text,
20};
21
22// Re-export IconName from gpui-component for Label::with_icon
23pub use gpui_component::IconName;
24
25// Input components
26pub use crate::components::{
27    IndexPath, InputState, Picker, PickerDelegate, PickerEvent, PickerGroup, PickerItem,
28    PickerState, SearchableVec, SecureField, Slider, SliderEvent, SliderState, SliderValue,
29    StepAction, Stepper, StepperEvent, TextEditor, TextField, Toggle,
30};
31
32// Modifier trait and types
33pub use crate::modifier::{ContentMode, Frame, Modified, Modifier, Padding, Tappable};
34
35// Common types
36pub use crate::types::ClickHandler;
37
38// Styling
39pub use crate::style::{Color, Font, FontDesign, FontWeight, SemanticColor};