Layout
Organize headers, sidebars, content and footers.
Basic usage
Compose the page with Header, Sider, Content and Footer. The nested horizontal layout places the sidebar next to the content.
basic.tsx
Responsive sidebar
Collapse the sidebar manually or automatically on narrow screens; the menu follows with icon navigation.
Overview
Select a navigation item to view its content.
advanced.tsx
Usage
Compose Layout.Header, Layout.Sider, Layout.Content and Layout.Footer. Use direction="horizontal" for side-by-side regions. Control the sidebar with collapsed, or set breakpoint for automatic collapse.
Types
Import these types for data, callbacks and refs.