/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
docs/components/Flags.astro
32 строки
626 B
Paweł Kuna
Add quality gates: Prettier for Astro, astro check for shared, unused SCSS variable lint (#2749)
03 авг 2026, 01:47
Не верифицирован
03 авг 2026, 01:47
8962710
Код
Авторство
О чём код?
--- 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>