Timeline
The Timeline component displays a list of events in chronological order, connected by lines and markers.Basic Timeline
A simple timeline showing events from top to bottom:Timeline Positions
Control where content appears relative to the timeline axis using theposition prop:
Colored Dots
TimelineDot supports different colors to indicate status or importance:Outlined Dots
Use thevariant prop for outlined style:
Opposite Content
Add content on the opposite side of the timeline:Custom Icons
Add icons inside TimelineDot:API Reference
Timeline Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The content of the component |
classes | object | - | Override or extend styles |
className | string | - | CSS class name |
position | 'left' | 'right' | 'alternate' | 'alternate-reverse' | 'right' | Position where content appears relative to the time axis |
sx | object | - | System prop for CSS overrides |
TimelineItem Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The content of the component |
classes | object | - | Override or extend styles |
position | 'left' | 'right' | 'alternate' | 'alternate-reverse' | - | Override the parent Timeline position |
sx | object | - | System prop for CSS overrides |
TimelineDot Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The content of the component (e.g., an icon) |
classes | object | - | Override or extend styles |
color | 'inherit' | 'grey' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'grey' | The color of the dot |
variant | 'filled' | 'outlined' | 'filled' | The variant to use |
sx | object | - | System prop for CSS overrides |
TimelineContent Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The content of the component |
classes | object | - | Override or extend styles |
sx | object | - | System prop for CSS overrides |
TimelineSeparator Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | Usually contains TimelineDot and TimelineConnector |
classes | object | - | Override or extend styles |
sx | object | - | System prop for CSS overrides |
TimelineConnector Props
| Prop | Type | Default | Description |
|---|---|---|---|
classes | object | - | Override or extend styles |
sx | object | - | System prop for CSS overrides |
TimelineOppositeContent Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | node | - | The content of the component |
classes | object | - | Override or extend styles |
sx | object | - | System prop for CSS overrides |
Component Structure
The Timeline component is rendered as an unordered list (<ul>) element. Each TimelineItem is rendered as a list item.
Source location: /home/daytona/workspace/source/packages/mui-lab/src/Timeline/Timeline.tsx:52
CSS Classes
You can override styles using these CSS classes:.MuiTimeline-root- Styles applied to the root element.MuiTimeline-positionLeft- Styles whenposition="left".MuiTimeline-positionRight- Styles whenposition="right".MuiTimeline-positionAlternate- Styles whenposition="alternate".MuiTimeline-positionAlternateReverse- Styles whenposition="alternate-reverse"