/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
shared/ui/Spinner.astro
15 строк
434 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 { type?: 'border' | 'grow' color?: string /** core/scss/bootstrap/_spinners.scss `.spinner-{type}-{size}` — only 'sm' exists */ size?: 'sm' | undefined class?: string } const { type = 'border', color, size, class: className } = Astro.props const classes = [`spinner-${type}`, color && `text-${color}`, size && `spinner-${type}-${size}`, className] --- <div class:list={classes} role="status"></div>