/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/ui/Dropdown.astro
23 строки
483 B
Paweł Kuna
Improve accessibility across layouts, components, and forms (#2799)
06 авг 2026, 00:40
Не верифицирован
06 авг 2026, 00:40
1effe22
Код
Авторство
О чём код?
--- interface Props { mainBtn?: string options?: string[] } const { mainBtn, options } = Astro.props const optionsArray = options ?? [] --- <div class="dropdown"> <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">{mainBtn}</button> <div class="dropdown-menu"> { optionsArray.map((option) => ( <button type="button" class="dropdown-item"> {option} </button> )) } </div> </div>