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 - Content layout pattern. AppShell, Header and Navbar components include bare minimum default styles to simplify customization.
Responsive styles
Open responsive example in new tab
Navbar component
Navbar can be used outside of AppShell context:
Navbar.Section
Responsive width
Fixed position
To make Navbar fixed (like in Mantine docs) set fixed and position props:
Navbar with custom scrollbars
Navbar.Section can be used with ScrollArea component:
Wrapping Navbar and Header components
AppShell component requires Navbar and Header components to be direct children at navbar and header props.
In addition, width and height need to be explicitly set on the wrapping Navbar or Header element respectively.
To use custom components instead of Navbar or Header:
Semantic elements
- Both Header and Navbar components root element is
nav - AppShell wraps content with
maintag – !important do not usemaintag inside AppShell
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback