LobeChatLobeHub
UI
Components
Chat
Mobile
Awesome
Brand
Mdx
Color
Changelog
Ctrl K
General
ActionIcon
ActionIconGroup
Icon
FileTypeIcon
MaterialFileTypeIcon
Data Display
Avatar
Collapse
EmptyCard
FluentEmoji
Highlighter
Image
List
Markdown
Mermaid
Snippet
SortableList
Tag
Tooltip
Video
Data Entry
CodeEditor
ContextMenu
CopyButton
EditableText
EmojiPicker
Form
FormModal
Input
SearchBar
SelectWithImg
SliderWithInput
Swatches
ThemeSwitch
Feedback
Alert
Modal
Layout
DraggablePanel
Footer
Grid
Header
Layout
Navigation
Burger
SideNav
TabsNav
Toc
Theme
ConfigProvider
FontLoader
ThemeProvider

Layout

The Layout component is used to create a basic layout structure with header, footer, sidebar and content areas. It provides customizable props such as headerHeight, asideWidth and tocWidth to adjust the size of each area. It also includes sub-components such as LayoutHeader, LayoutMain, LayoutSidebar, LayoutToc and LayoutFooter, which can be used independently for more flexibility. The component is responsive to different screen sizes with the help of useResponsive hook.

import { Layout } from '@lobehub/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
Header
Next
Burger

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2025
Made with 🤯 by LobeHub
LobeHub

Default

APIs

NameDescriptionTypeDefault
asideWidthWidth of the sidebarnumber--
childrenChildren of the layoutReactNode--
contentContent of the layoutReactNode--
footerFooter of the layoutReactNode--
headerHeader of the layoutReactNode--
headerHeightHeight of the headernumber64
helmetHelmet of the layoutReactNode--
sidebarSidebar of the layoutReactNode--
tocTable of contents of the layoutReactNode--
tocWidthWidth of the table of contentsnumber--
HEADER
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
SIDEBAR
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
CONTENT
TOC
FOOTER