Container
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:
Examples
Basic Usage
<Container w="300px">
Code
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.
maxW="md"
maxW="550px"
maxW="20ch"
Code
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.
Code
Did you know?
Creative Idea No. 1
Code
Creative Idea No. 2
Basic Plan
Perfect for starters
$9.99/mo
Pro Plan
Ideal for professionals
$19.99/mo
Premium Plan
For advanced users
$29.99/mo
Code
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.
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.