<sessions-detail-row>
One row in a list of facts — what a *.row target renders.
Preact & React
<DetailRow>GroupRowsDrawn asSessionDetailRowPreview
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
subtitleA subdued line under the title.Prop
subtitlesubtitle-linesHow many lines the subtitle may wrap to.
12Prop subtitleLineshrefAn
https: URL the row opens in a new tab.Prop hrefSlots
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>