mirror of
https://github.com/tabler/tabler.git
synced 2026-08-08 04:12:26 +04:00
8962710163
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
33 lines
626 B
Plaintext
33 lines
626 B
Plaintext
---
|
|
import flags from '@data/flags.json'
|
|
---
|
|
|
|
<table class="table table-vcenter">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-1">Flag</th>
|
|
<th>Name</th>
|
|
<th class="w-1">Country code</th>
|
|
<th>CSS class</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{
|
|
flags.map((flag) => (
|
|
<tr>
|
|
<td>
|
|
<div class={`flag flag-sm flag-country-${flag.flag}`} />
|
|
</td>
|
|
<td>{flag.name}</td>
|
|
<td>
|
|
<code>{flag.flag}</code>
|
|
</td>
|
|
<td>
|
|
<code>.flag-country-{flag.flag}</code>
|
|
</td>
|
|
</tr>
|
|
))
|
|
}
|
|
</tbody>
|
|
</table>
|