Skip to content

Row

THE list row: a lead glyph or slot, a mono identifier, title and subtitle, trailing meta or value, a slot and a chevron; flat or card, nestable.

Group: Lists · Kind: macro · in the lite catalog

example
r/selfhosted
312 posts
surface · flat
r/selfhosted
312 posts
surface · card
r/selfhosted
312 posts
chevron · none
r/selfhosted
312 posts
chevron · right
r/selfhosted
312 posts
chevron · selector
r/selfhosted
312 posts
selected · true
r/selfhosted
312 posts

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-row on Web
exponential-ui-row on iOS
exponential-ui-row on Android
exponential-ui-row on Desktop
density · default
r/selfhosted
312 posts
density · compact
r/selfhosted
312 posts
Prop Type Required Bindable Description
title string yes yes The main text.
identifier string – yes A mono identifier before the title (EXP-12).
subtitle string – yes A muted second line.
meta string – yes Trailing muted text (a count, a time).
value string – yes A trailing readable value (a property, a pick).
placeholder string – – Muted trailing text while value is empty.
icon icon – yes The lead glyph (the leading slot replaces it).
chevron none | right | selector – yes Trailing disclosure or picker glyph. Default "none".
selected boolean – yes Draws it as the active row. Default false.
density default | compact – – Row height class. Default "default".
surface flat | card – – A flat row, or a padded card with its own fill and border. Default "flat".
pressable boolean – – Makes it a press target that fires press (an on.press implies it). Default false.
depth number – – Depth under a tree Section (0 = root). Default 0.
  • on.press: runs an action
  • leading: one component by id
  • trailing: one component by id

none

No basic catalog component maps here.

Box · Icon · Text

Role: button

button (aria-selected when selected) when pressable, a group of its texts otherwise ($a11y); the guides are decorative

Keys Action
Enter Space press (pressable only)

Recipe parts: Row/root Row/guides Row/icon Row/identifier Row/body Row/title Row/subtitle Row/meta Row/value Row/chevron

Keyed by: selected density surface depth :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Icon · Text · Section · Group · Trace · TraceItem · Plan · MessageBubble