Timeline API
View componentThe full prop reference for the Timeline component. A chronological event list.
Import
tsx
import { Timeline } from '@structyl/styled';Props
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. | — |
Source code
If you didn't find what you need here, read the component implementation .