id: skeleton
label: Skeleton
family: family-e-feedback
category: Feedback
intent: Show placeholder while content loads
description: Loading skeleton placeholder
composable: false
capabilities:
required_parts: []
optional_parts: []
tags: ["skeleton", "loading", "placeholder", "shimmer"]
keywords:
pain: Loading placeholders inconsistent and lack accessibility semantics
promise: Skeleton state and variant standardized via structure
why: |
SkeletonPrimitive encodes variant and loading state with aria-busy. This guarantees consistent placeholder rendering and accessibility feedback.
rules: ["CR-001", "CR-004"]
use_cases: ["loading states", "content placeholders"]
related: ["progress", "spinner", "pulse", "loading_overlay", "doc_progress"]
file: skeleton_ui.css
tokens: skeleton-*, size-*, radius-*, motion-*
foundation: size, radius, motion
states: ["loading"]
island: skeleton_boundary.rs
pillar: progress
badges: ["SSR Safe", "Hydration Safe", "Token Driven", "Deterministic API", "Zero Drift"]
before: |
// ❌ Typical
view! {
<div class="skeleton"></div>
}
after: |
// ✅ CanonRS
view! {
<Skeleton variant=SkeletonVariant::Text />
}
boundary_type: passthrough
block: []
blocks_primitives: [stack, grid]