By incorporating the Container component, you can easily control the width of your content while maintaining a consistent design system. The flexibility provided by the Container component allows for responsive designs across different breakpoints.
The Container component can be imported as follows:
Customizing Container Size
In this example, we demonstrate different maxWidth values for the Container component. The first Container has a maxW of "md," the second has a maxW of "550px," and the third uses the container.sm size token. Feel free to adjust these values based on your specific design requirements.
Container Content Centering
In this code snippet, we have a Container component with maxW set to "xl" and the centerContent prop applied. Inside the Container, there's a Box component that contains the actual content. The padding and maxW properties are set to control the appearance of the content. The result is a centered content block within the container.
Did you know?
Creative Idea No. 1
Creative Idea No. 2
Perfect for starters
Ideal for professionals
For advanced users
Creative Idea No. 3
Have you ever wondered what it would be like to travel through time? In this blog post, we'll uncover the mysteries behind time travel and explore its implications for the future. Buckle up, as we delve into the science, theories, and mind-bending paradoxes that accompany this fascinating concept.