Layout structures both full viewport application shells and local workspaces such as editors, settings, and detail pages. It defines the main screen regions: topbar, header, subheader, sidebar, content, aside, and footer.
Use root for the application shell and non-root layouts for local workspaces with managed height, nested layouts, scrollable content, and an optional sidebar that can be shown, hidden, or toggled through LayoutApiService.
- Semantic regions for topbar, header, subheader, sidebar, content, aside, and footer.
- Root mode for full viewport shells and absolute mode to fill a positioned parent.
- Nested layouts for complex admin and workspace screens.
- Built-in content scrolling with optional auto-scroll to top on navigation.
- Sidebar visibility control by layoutId through LayoutApiService.
Do not use Layout as a small wrapper, card, spacing helper, form grouping tool, or generic grid system. Use TailwindCSS grid, flex, and spacing classes inside layout regions. Use Grid for static dashboard widgets, Tiles for dashboards users can rearrange or customize, DataView or Table for datasets, Drawer for overlay side panels, and navigation components inside sidebars.