Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 711 Bytes

File metadata and controls

30 lines (21 loc) · 711 Bytes

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

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.