AppShell
Responsive shell for your application with header and navbar
Import
Source
Docs
Package
Usage
AppShell is a layout component that can be used to create a common Header - Navbar - Footer - Aside - Content layout pattern. AppShell, Header, Footer, Aside and Navbar components include bare minimum default styles to simplify customization. View full source code
Responsive styles
Open responsive example in new tab
Navbar and Aside components
Navbar and Aside components can be used outside of AppShell context (View full source code):
Navbar.Section and Aside.Section
Responsive width
Fixed position
To make Navbar or Aside fixed (like in Mantine docs) set fixed
and position
props:
Custom scrollbars
Navbar.Section
and Aside.Section
components can be used with ScrollArea component (View full source code):
Semantic elements
- Header and Navbar components root element is
nav
- Footer component root element is
footer
- Aside component root element is
aside
- AppShell wraps content with
main
tag – !important do not usemain
tag inside AppShell