/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/ui/OffcanvasHeader.astro
23 строки
507 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
Код
Авторство
О чём код?
--- // Offcanvas header (.offcanvas-header) with an optional h2.offcanvas-title; slot renders after the title. interface Props { title?: string /** id on the title heading, referenced by the offcanvas root's aria-labelledby */ titleId?: string class?: string } const { title, titleId, class: className } = Astro.props --- <div class:list={['offcanvas-header', className]}> { title && ( <h2 class="offcanvas-title" id={titleId}> {title} </h2> ) } <slot /> </div>