Skip to content

<sessions-detail-row>

One row in a list of facts — what a *.row target renders.

Preact & React<DetailRow>GroupRowsDrawn asSessionDetailRow

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

Drawn exactly like the rows around it (price, time, location on the session sheet). The text is the title; an icon child leads it. With an https: href the row opens it in a new tab and ends with an outbound arrow. Outside a row target it renders as a plain line.

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
subtitle-lines
How many lines the subtitle may wrap to.12Prop subtitleLines
href
An https: URL the row opens in a new tab.Prop href

Slots

slot="icon"
A small sessions-image at the start of the row, drawn at 18px.
Example
import {DetailRow, Image} from '@sessions/apps/preact';

<DetailRow subtitle="Spotify" href="https://open.spotify.com/playlist/37i9">
  <Image slot="icon" src="https://example.com/spotify.png" alt="" />
  Morning flow
</DetailRow>

In the same group