Frame

A layout component for wrapping page content.

Import

import { Container, Header, Content, Footer, Sidebar } from 'rsuite';
  • Container provides a structural wrapper for layout elements.
  • Header represents the top section, typically containing navigation or branding.
  • Content holds the main content of the layout.
  • Footer appears at the bottom, often containing copyright or links.
  • Sidebar is a vertical section for navigation or additional content.

Examples

Horizontal Layout

Vertical Layout

Center Layout

Props

<Container>

Property Type (Default) Description
as ElementType ('section') You can use a custom element for this component
children ReactNode Primary content
classPrefix string ('container') The prefix of the component CSS class
className string Additional classes
style CSSProperties Additional style

<Header>

Property Type (Default) Description
as ElementType ('header') You can use a custom element for this component
children ReactNode Primary content
classPrefix string ('header') The prefix of the component CSS class
className string Additional classes
style CSSProperties Additional style

<Content>

Property Type (Default) Description
as ElementType ('main') You can use a custom element for this component
children ReactNode Primary content
classPrefix string ('content') The prefix of the component CSS class
className string Additional classes
style CSSProperties Additional style
Property Type (Default) Description
as ElementType ('footer') You can use a custom element for this component
children ReactNode Primary content
classPrefix string ('footer') The prefix of the component CSS class
className string Additional classes
style CSSProperties Additional style

<Sidebar>

Property Type (Default) Description
as ElementType ('aside') You can use a custom element for this component
children ReactNode Primary content
classPrefix string ('sidebar') The prefix of the component CSS class
className string Additional classes
collapsible boolean Whether the sidebar can be collapsed
style CSSProperties Additional style
width number Width of the sidebar