list
Information
- Folder
src/components/patterns/user-management/list
Files
Schema
$schema: http://json-schema.org/draft-07/schema
$id: /patterns/user-management/list
$ref: /patterns/user-management/data
Mocks
$variants:
- $name: self
$ref: /patterns/user-management/data#self
- $name: team
$ref: /patterns/user-management/data#team
Template
<ul class="UserManagementList">
{% for user in users %}
<li class="UserManagementList-item">
{% set trigger %}
<button class="UserManagementList-button" type="button">
<span class="UserManagementList-buttonImage">{{ user.avatar }}</span>
<span class="u-typo-TextM">{{ user.name }}</span>
</button>
{% endset %}
{% set content %}
{% include "@patterns/user-management/list/_details/_details.twig" with user only %}
{% endset %}
{% include "@patterns/user-management/_dialog/_dialog.twig" with {
classes: ["UserManagementList-dialog"],
trigger: trigger,
content: content,
avatar: user.avatar,
name: user.name,
unit: user.unit,
} only %}
</li>
{% endfor %}
</ul>
Variants