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 %}
Prop name | Type | Default | Required | Description |
---|---|---|---|---|
class |
string |
null |
no | Custom CSS class |
You can add id
, data-*
or aria-*
attributes to further extend component's
descriptiveness and accessibility.