Skip to content

<sessions-detail-row-skeleton>

A detail row while its title loads.

Preact & React<DetailRowSkeleton>GroupRowsDrawn asSessionDetailRowSkeleton

Preview

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
subtitle
A subdued line under the title.Prop subtitle
title-width
The placeholder title’s width, e.g. 42%.Prop titleWidth
subtitle-width
With no subtitle, a placeholder subtitle of this width.Prop subtitleWidth

Slots

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>

In the same group