/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/components/modals/ModalHeader.astro
14 строк
383 B
Paweł Kuna
Improve accessibility across layouts, components, and forms (#2799)
06 авг 2026, 00:40
Не верифицирован
06 авг 2026, 00:40
1effe22
Код
Авторство
О чём код?
--- interface Props { title?: string /** id on the title heading, referenced by the modal root's aria-labelledby */ titleId?: string } const { title = 'Modal title', titleId } = Astro.props --- <div class="modal-header"> <h5 class="modal-title" id={titleId}>{title}</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div>