Work in Progress
This library is still a work in progress and things will likely change.
Included with Starter Kit
Container content
This component is available with our Astro Starter Kit.
Import the component on the page or component you need, like this:
---
import Container from '@components/Container.astro';
---
The Container component will place content in a centered container. It will also add padding to the left and right of the content, to make sure it doesn’t touch the edges of the screen.
You probably won’t need the Container too often, Section is often the better choice.
as - The HTML element to use for the container. Defaults to div.class - Optional CSS class to add to the container.We use cookies to provide the best experience.