A horizontal layout primitive — text with optional slots on both sides. Used inside Cell, Card, and any component that needs a row with text.
--
--
--
--
Standard
Pickup location
Expanded
Pickup location
Overview
TextRow is a horizontal layout primitive. It wraps a text node and up to 4 optional icon slots. It does not define its own typography or color — those are set by the parent component.
1
Standard mode — text only, all slots hidden
2
Expanded mode — up to 4 slots around the text (before-1, before-2, after-1, after-2)
Standard — text only
Pickup location
Expanded — with slots
Pickup location
Anatomy
TextRow is a flex row: optional slots on both sides wrap a fill-width text node.
Pickup location
1
2
3
Slots
2
slot-start-1/2Optional. Left side. Hug. Visible in expanded mode only.
3
textRequired. Fill width. Truncates with ellipsis by default.
4
slot-end-1/2Optional. Right side. Hug. Visible in expanded mode only. Hidden when multiline is on.
Layout
Multiline off — 4 slots
Pickup location near the station
Multiline on — end slots hidden
Pickup location near the main railway station
General
1
directionhorizontal flex row
2
widthfill, determined by parent
3
heighthug content
4
align-vcenter
5
s4gap between all elements
Expanded ON
1
multiline: offDefault. Single line. Text truncates with ellipsis. slot-start/end-1/2 can be displayed.
2
multiline: onText wraps. slot-end-1 and slot-end-2 are hidden.
Standard ON
1
multiline: offDefault. Single line. Text truncates with ellipsis.
2
multiline: onText wraps. No slots.
Usage
TextRow is always used inside a parent component. It inherits typography and color from the parent — never sets them itself.