larva components: c-timestamp
Available Variants
prototypec-timestamp
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
c-timestamp
Twig The markup file.
<time class="c-timestamp {{ modifier_class }} {{ c_timestamp_classes }}"
datetime="{{ c_timestamp_datetime_attr }}"
{% if c_timestamp_aria_label_attr %}
aria-label="{{ c_timestamp_aria_label_attr }}"
{% endif %}
>
{{ c_timestamp_text }}
{% if c_timestamp_markup %}
{{ c_timestamp_markup|raw }}
{% endif %}
</time>
c-timestamp
JSON The data object for this pattern.
{
"c_timestamp_classes": "",
"c_timestamp_datetime_attr": "00:00-YY-DD-MM",
"c_timestamp_text": "July 3, 2001",
"c_timestamp_aria_label_attr": false
}