Render the class reference in the docs-table box

This commit is contained in:
codecalm committed 2026-09-22 22:05:56 +02:00
1 parent 2ec8e43bd1
commit 63cece9daf
1 file changed
+31 -22
+31 -22
View File
@@ -46,26 +46,35 @@ const groups = Object.entries(classnames).sort(([a], [b]) => (groupOrder.indexOf
<p>Every class this component ships, grouped by what it changes. A name in braces stands for a family — <code>{'{color}'}</code> is any base color, <code>{'{breakpoint}'}</code> any responsive step.</p>
<table class="docs-classnames">
<tbody>
{
groups.map(([group, entries]) =>
entries.map((entry) => (
<tr>
<td>
<code>{entry.class}</code>
</td>
<td>
<Badge color={groupColors[group] ?? 'secondary'} light icon={groupIcons[group] ?? 'tag'} text={group} class="text-capitalize" />
</td>
<td>
{entry.desc}
{entry.default && <Badge color="blue" light text="default" class="ms-2" />}
</td>
</tr>
)),
)
}
</tbody>
</table>
<div class="docs-table">
<table>
<thead>
<tr>
<th>Class</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{
groups.map(([group, entries]) =>
entries.map((entry) => (
<tr>
<td>
<code>{entry.class}</code>
</td>
<td>
<Badge color={groupColors[group] ?? 'secondary'} light icon={groupIcons[group] ?? 'tag'} text={group} class="text-capitalize" />
</td>
<td>
{entry.desc}
{entry.default && <Badge color="blue" light text="default" class="ms-2" />}
</td>
</tr>
)),
)
}
</tbody>
</table>
</div>
<!-- END DOCS CLASSNAMES -->