6 Grouped components
6.1 Linked-list View in a new window
Link lists are a structured way of displaying links to content with a common theme.
Twig: components/linked-list/linked-list.twig
Markup
{% set linkList = linkList|default([
{
"text": "How to safely manage",
"url": "#", "svgUrl":"."
},
{
"text": "How to safely dispose",
"url": "#", "svgUrl":"."
},
{
"text": "Who to contact",
"url": "#", "svgUrl":"."
}
]) %}
<div class="">
<div class="nsw-link-list">
<ul class="nsw-link-list__list p-0">
{% for item in linkList %}
{% include '@asbestos/components/linked-list/list.twig' with {
"item": item
} %}
{% endfor %}
</ul>
</div>
</div>
6.2 Stepper View in a new window
Example
Step 2 of 4: Using PPE
Markup
{% set mobileCaption = mobileCaption|default('Step 2 of 4: Using PPE') %}
{% set modifier_class = modifier_class|default('col-12') %}
{% set steppersData = steppersData|default([
{
"caption": "Step 1: Planning",
"isCompleted": false,
"isActive":false
},
{
"caption": "Step 2: Using PPE",
"isCompleted": true,
"isActive":true
},
{
"caption": "Step 3: Decontamination",
"isCompleted": false,
"isActive":false
},
{
"caption": "Step 4: Disposal",
"isCompleted": false,
"isActive":false
}
]) %}
<div class="stepper-container {{modifier_class}}">
<div class="step-mobile-caption d-block d-md-none">
{{ mobileCaption }}
</div>
<div class="d-flex justify-content-center align-items-end">
{% for item in steppersData %}
{% include '@asbestos/components/steppers/step.twig' with {
"item": item
} %}
{% endfor %}
</div>
</div>