Skeleton
Reserve stable space while content loads. CSS only
<span class="ui-skeleton" data-ui-width="medium" aria-hidden="true"></span>Install
import '@timelessui/components/css/tokens.css'import '@timelessui/components/css/skeleton.css'Attributes
Every value below is implemented by the stylesheets this component ships. Boolean attributes are presence-based: author the attribute with no value, or omit it.
| Attribute | Values | Default | Description |
|---|---|---|---|
data-ui-size | sm · md · lg | md | Line height for the text shape, diameter for circle. |
data-ui-shape | text · circle · media | text | Placeholder geometry. |
data-ui-width | full · medium · short | full | Inline size, so a group of lines can look like real text. |
Styling
Root identity: ui-skeleton. Required stylesheets: tokens.css, skeleton.css.
This component adds no custom properties of its own. Restyle it through the design tokens or your own CSS.
Design tokens this component reads (6)
These are global Atmosphere tokens. Change them once at the theme level rather than per component.
--ui-bg-surface-raised · --ui-ease-standard · --ui-fg · --ui-radius-lg · --ui-radius-pill · --ui-radius-sm
Accessibility
Keep the native elements, roles, and relationships shown in the example. Timeless adds only the state and keyboard coordination the platform does not already provide, and it never supplies your accessible names — those depend on your content.
Before JavaScript runs
This primitive is CSS only. There is nothing to register and nothing to wait for.
More examples
Open Skeleton in StoryLite for variants, controls, and manual testing.