/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/ui/StatusDot.astro
13 строк
317 B
Paweł Kuna
Improve accessibility across layouts, components, and forms (#2799)
06 авг 2026, 00:40
Не верифицирован
06 авг 2026, 00:40
1effe22
Код
Авторство
О чём код?
--- interface Props { color?: string animated?: boolean label?: string } const { color, animated, label } = Astro.props const classes = ['status-dot', color && `status-${color}`, animated && 'status-dot-animated'] --- <span class:list={classes}>{label && <span class="visually-hidden">{label}</span>}</span>