Componente Skeleton Loader para Angular | ng-hub-ui-skeleton

Placeholders skeleton de carga para Angular con presets reutilizables, templates DSL inline, valores responsive y variables CSS para estados shimmer.

Estilos

Mixins y estilos

Override the `--hub-skeleton-*` design tokens in a single include. Every parameter is OPTIONAL and defaults to `null`: only the parameters you pass are emitted, so the rest keep the component's defaults. Token-based and self-contained (no Bootstrap dependencies).

Theming with hub-skeleton-theme
MixinParámetrosDescripción
Theming
hub-skeleton-theme()
$bg--hub-skeleton-bg
$highlight--hub-skeleton-highlight
$radius--hub-skeleton-radius
$gap--hub-skeleton-gap
$animation-duration--hub-skeleton-animation-duration
One-call theming for `<hub-skeleton>`

Variables CSS

Personaliza cada detalle con 5 variables CSS. Sobrescríbelas en :root o acótalas a un contenedor.

Skeleton

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

VariablePor defectoTipoDescripción
--hub-skeleton-bgrgba(148, 163, 184, 0.18)color Color base del placeholder usado para las superficies visibles del skeleton.
--hub-skeleton-highlightrgba(255, 255, 255, 0.52)color Color de resalte usado por el gradiente de shimmer.
--hub-skeleton-radius12pxlength Radio del borde por defecto para los nodos block y line.
--hub-skeleton-gap12pxlength Espacio por defecto usado por los nodos stack y grid cuando no se sobrescribe mediante modificadores.
--hub-skeleton-animation-duration1.35stransition Duración del ciclo de animación de shimmer.