Container

Container pads and aligns your content within a given device or viewport.

Markdown docs

Container

This is Twig implementation of the Container component.

Basic example usage:


                                                
                                                <Container>Content</Container>

Without lexer:


                                                
                                                {% embed "@spirit/container.twig" %}
                                                    {% block content %}
                                                        Content
                                                    {% endblock %}
                                                {% endembed %}

API

There is no API for Container.

The components accept additional attributes. If you need more control over the styling of a component, you can use style props and escape hatches.

Example