TimelineItem
Data Display

TimelineItem

Compose one event row inside a Timeline using content slots.

TimelineItem renders one event row inside a Timeline. Fill its content slots to compose an event without supplying a TimelineEvent record.

Import

TSX
import { TimelineItem } from "@solarius/onset";

Props

TimelineItemProps props
PropTypeDefaultDescription
titleReactNode—The headline.
metaReactNode—Monospace source text beside the title.
timeReactNode—Timestamp content positioned according to the enclosing Timeline.
descriptionReactNode—Secondary content below the title.
childrenReactNode—The description slot under another name, for the composed path. description wins if both are given.
detailReactNode—Framed detail content below the row.
actionsReactNode—Right-aligned controls on the title row.
toneToneProp—Colors this row's marker and its halo, and the detail block's edge.
iconReactNode—Glyph inside the marker, in place of the dot.
markerReactNode—Replaces the event marker.
contentReactNode—Replaces the row's slots entirely, keeping the rail, the state and the click. What Timeline's renderItem arrives as.
activeboolean—Applies active styling with a tinted background and emphasized marker.
dashedboolean—Draws the run of line below this row dashed.
onClick(event: MouseEvent<HTMLElement>) => void—Makes the row a button. Lands on the row, not the <li>.

Example

TimelineItem