TL;DR our version of [HIG's Box](https://developer.apple.com/design/human-interface-guidelines/boxes) We can't use the name `Box` (because rust) or `ContentBox` (because taffy/styles/css). --- This PR introduces the `ContentGroup` component, a flexible container inspired by HIG's `Box` component. It's designed to hold and organize various UI elements with options to toggle borders and background fills. **Example usage**: ```rust ContentGroup::new() .flex_1() .items_center() .justify_center() .h_48() .child(Label::new("Flexible ContentBox")) ``` Here are some configurations: - Default: Includes both border and fill. - Borderless: No border for a clean look. - Unfilled: No background fill for a transparent appearance. **Preview**:  --- _This PR was written by a large language model with input from the author._ Release Notes: - N/A
74 lines
1.3 KiB
Rust
74 lines
1.3 KiB
Rust
mod avatar;
|
|
mod button;
|
|
mod checkbox;
|
|
mod content_group;
|
|
mod context_menu;
|
|
mod disclosure;
|
|
mod divider;
|
|
mod dropdown_menu;
|
|
mod facepile;
|
|
mod icon;
|
|
mod image;
|
|
mod indent_guides;
|
|
mod indicator;
|
|
mod keybinding;
|
|
mod label;
|
|
mod list;
|
|
mod modal;
|
|
mod navigable;
|
|
mod numeric_stepper;
|
|
mod popover;
|
|
mod popover_menu;
|
|
mod radio;
|
|
mod right_click_menu;
|
|
mod scrollbar;
|
|
mod settings_container;
|
|
mod settings_group;
|
|
mod stack;
|
|
mod tab;
|
|
mod tab_bar;
|
|
mod table;
|
|
mod tool_strip;
|
|
mod tooltip;
|
|
|
|
#[cfg(feature = "stories")]
|
|
mod stories;
|
|
|
|
pub use avatar::*;
|
|
pub use button::*;
|
|
pub use checkbox::*;
|
|
pub use content_group::*;
|
|
pub use context_menu::*;
|
|
pub use disclosure::*;
|
|
pub use divider::*;
|
|
pub use dropdown_menu::*;
|
|
pub use facepile::*;
|
|
pub use icon::*;
|
|
pub use image::*;
|
|
pub use indent_guides::*;
|
|
pub use indicator::*;
|
|
pub use keybinding::*;
|
|
pub use label::*;
|
|
pub use list::*;
|
|
pub use modal::*;
|
|
pub use navigable::*;
|
|
pub use numeric_stepper::*;
|
|
pub use popover::*;
|
|
pub use popover_menu::*;
|
|
pub use radio::*;
|
|
pub use right_click_menu::*;
|
|
pub use scrollbar::*;
|
|
pub use settings_container::*;
|
|
pub use settings_group::*;
|
|
pub use stack::*;
|
|
pub use tab::*;
|
|
pub use tab_bar::*;
|
|
pub use table::*;
|
|
pub use tool_strip::*;
|
|
pub use tooltip::*;
|
|
|
|
#[cfg(feature = "stories")]
|
|
pub use image::story::*;
|
|
#[cfg(feature = "stories")]
|
|
pub use stories::*;
|