Timeline
stableA chronological event list.
Basic usage
- Created project
Examples
Multiple events
Compose separators, dots and content for chronological activity.
- Created project
- Invited team
- Deployed preview
Custom dot states
Customize dot color with token classes for status timelines.
- Checks passed
- Review pending
Position and dot variants
Timeline supports position plus filled/outlined colored dots.
- Passed
- Pending
Features
- Compound timeline parts.
- Styled dot and content.
Installation
bash
pnpm dlx structyl add timelineAPI Reference
Timeline.Root
Timeline list root.
| Prop | Type | Default |
|---|---|---|
| position | 'left' | 'right' | 'alternate'Timeline content position. | 'right' |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |
Timeline.Dot
Timeline marker.
| Prop | Type | Default |
|---|---|---|
| color | 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'Marker color. | 'primary' |
| variant | 'filled' | 'outlined'Marker treatment. | 'filled' |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |
Timeline.Item / Separator / Content
Timeline composition parts.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes merged with the component defaults. | — |