/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/components/cards/BodyPlaceholder.astro
16 строк
551 B
Paweł Kuna
Narrow component prop types, remove unused props and dead code (#2838)
10 авг 2026, 00:14
Не верифицирован
10 авг 2026, 00:14
4f7beec
Код
Авторство
О чём код?
--- interface Props { height?: number class?: string } const width = 400 const { height = 200, class: className } = Astro.props --- <div class={`card-body${className ? ` ${className}` : ''}`}> <svg xmlns="http://www.w3.org/2000/svg" class="w-100 border rounded" preserveAspectRatio="none" width={width} height={height} viewBox={`0 0 ${width} ${height}`} fill="transparent" stroke="var(--tblr-border-color, #b8cef1)"> <line x1="0" y1="0" x2={width} y2={height}></line> <line x1="0" y1={height} x2={width} y2="0"></line> </svg> </div>