<sessions-skeleton-heading>
A heading placeholder while data loads.
Preact & React
<SkeletonHeading>GroupLoadingDrawn asSkeletonHeadingPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
Pairs with sessions-skeleton-text for a section that is still resolving.
In Preact and React, import the component of the same name from @sessions/apps/preact or @sessions/apps/react. Attributes become camelCase props, a boolean attribute is a boolean prop, and an event is an on prop that receives the event’s detail.
Attributes
Attribute
widthA CSS width.Prop
widthExample
import {SkeletonHeading} from '@sessions/apps/preact';
<SkeletonHeading width="40%" />