Properties ➡️ Attributes & Properties

This commit is contained in:
Lea Verou
2024-12-09 10:44:03 -05:00
parent 2d19c5d915
commit adb655a53b

View File

@@ -62,7 +62,7 @@
{# Properties #}
{% if component.properties.length %}
<h2>Properties</h2>
<h2>Attributes & Properties</h2>
<div class="table-scroll">
<table class="component-table">
@@ -77,9 +77,9 @@
{% for prop in component.properties %}
<tr>
<td class="table-name">
<code>{{ prop.name }}</code><br>
<code title="JS property">{{ prop.name }}</code><br>
{% if prop.attribute %}
<div><small><code>{{ prop.attribute }}</code></small></div>
<div><small><code title="HTML attribute">{{ prop.attribute }}</code></small></div>
{% endif %}
</td>
<td class="table-description">