ui_suite_daisyui-4.0.x-dev/templates/ui_patterns_library/ui-patterns-component-table.html.twig
templates/ui_patterns_library/ui-patterns-component-table.html.twig
{#
/**
* @file
* UI Pattern meta information.
*/
#}
{% if component.slots or component.props %}
<table class="table ui_patterns_component_table views-table" style="width: 100%;">
<thead>
<tr>
<th>{{ 'Name'|t }}</th>
<th>{{ 'Label'|t }}</th>
<th>{{ 'Type'|t }}</th>
<th>{{ 'Description'|t }}</th>
</tr>
</thead>
<tbody>
{% for slot_id, slot in component.slots %}
<tr class="ui_patterns_component_table__slot">
<td>
<code class="bg-base-200 rounded-badge px-1">{{ slot_id }}</code>
</td>
<td>{{ slot.title }}</td>
<td>{{ 'Slot'|t }}</td>
<td>{{ slot.description }}</td>
</tr>
{% endfor %}
{% for prop_id, prop in component.props.properties %}
{% if prop_id != 'attributes' and prop_id != 'variant' %}
<tr class="ui_patterns_component_table__prop">
<td>
<code class="bg-base-200 rounded-badge px-1">{{ prop_id }}</code>
</td>
<td>{{ prop.title }}</td>
<td>{{ prop.ui_patterns.type_definition.label }}</td>
<td>
{%- for line in prop.ui_patterns.summary -%}
{{- line -}}
<br>
{%- endfor -%}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
