dioxus_nox_shell/lib.rs
1//! # dioxus-shell
2//!
3//! **⚠️ Disclaimer:** This crate was entirely generated by AI (Claude) as part of a
4//! personal learning project. It has not been battle-tested in production and may
5//! contain bugs or unsound abstractions. Use at your own risk and exercise extreme
6//! caution before depending on it in anything that matters.
7//!
8//! Application shell layout primitive for Dioxus.
9//!
10//! Provides [`AppShell`] — a persistent, always-visible split-pane layout
11//! with named slots (sidebar, children, preview, footer). Headless: all
12//! layout is CSS-driven via `data-shell*` attributes.
13//!
14//! ## Quick start
15//!
16//! ```rust,ignore
17//! use dioxus_nox_shell::prelude::*;
18//!
19//! AppShell {
20//! sidebar: rsx! { MySidebar {} },
21//! MyMainContent {}
22//! }
23//! ```
24
25pub mod breakpoint;
26mod context;
27mod shell;
28#[cfg(test)]
29mod tests;
30
31pub use breakpoint::{
32 BreakpointConfig, DesktopSidebar, MobileSidebar, SheetSnap, ShellBreakpoint,
33 use_shell_breakpoint,
34};
35pub use context::{ShellContext, use_shell_context};
36pub use shell::{AppShell, MobileSidebarBackdrop, ShellLayout};