App Shell

The App Shell defines the main structure of your app.

Props#

The AppShell component and all sub components accept all Box properties.

PropTypeDefaultDescription
asidestring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>Secondary sidebar, positioned on the right
childrenstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>The main content
colorScheme"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram" | "primary" | "secondary" | "indigo"The visual color appearance of the component
footerstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>The footer
mainRefRefObject<HTMLDivElement>
navbarstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>The top header navigation
sidebarReactElement<any, string | JSXElementConstructor<any>>Main sidebar, positioned on the left
sizestringThe size of the AppShell
variant"static" | "fullscreen"fullscreenThe variant of the AppShell

Was this helpful?