API reference: @salmonui/layout/timeline
TimelineItemDatainterface
import type { TimelineItemData } from '@salmonui/layout/timeline';interface TimelineItemData {
readonly content?: ReactNode;
readonly opposite?: ReactNode;
readonly marker?: ReactNode;
readonly tone?: TimelineTone | undefined;
readonly disabled?: boolean | undefined;
readonly className?: string | undefined;
readonly key?: string | number | undefined;
}
One entry of the items array.
| Name | Signature | Description |
|---|---|---|
contentoptional | readonly content?: ReactNode; | |
oppositeoptional | readonly opposite?: ReactNode; | Content on the other side of the marker. |
markeroptional | readonly marker?: ReactNode; | Replaces the default dot (an icon, an avatar). |
toneoptional | readonly tone?: TimelineTone | undefined; | |
disabledoptional | readonly disabled?: boolean | undefined; | |
classNameoptional | readonly className?: string | undefined; | |
keyoptional | readonly key?: string | number | undefined; | React key; default the index. |