<sessions-detail-row-skeleton>
A detail row while its title loads.
Preact & React
<DetailRowSkeleton>GroupRowsDrawn asSessionDetailRowSkeletonPreview
Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.
When to use it
Print what you already know — the icon, the subtitle — and shimmer only the title, so the row does not move when it resolves.
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
subtitleA subdued line under the title.Prop
subtitletitle-widthThe placeholder title’s width, e.g.
42%.Prop titleWidthsubtitle-widthWith no
subtitle, a placeholder subtitle of this width.Prop subtitleWidthSlots
slot="icon"A small
sessions-image at the start of the row.Example
import {DetailRowSkeleton, Image} from '@sessions/apps/preact';
<DetailRowSkeleton subtitle="Spotify" titleWidth="42%">
<Image slot="icon" src="https://example.com/spotify.png" alt="" />
</DetailRowSkeleton>