Timeline
Vertical timeline for activity feeds and history
Created
Reviewed
Merged
Accessibility
- Treat the component as presentational unless it exposes interactive affordances, and label any interactive affordances explicitly.
- Keep heading, reading, and focus order aligned with the surrounding content.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Timeline } from '@dryui/ui';
</script>
<Timeline.Root>
<Timeline.Item>
<Timeline.Icon />
<Timeline.Content>
<Timeline.Title>Event title</Timeline.Title>
<Timeline.Description>Event description</Timeline.Description>
<Timeline.Time>2 hours ago</Timeline.Time>
</Timeline.Content>
</Timeline.Item>
</Timeline.Root> Import options
Root package
ts
import { Timeline } from '@dryui/ui' Per-component subpath
ts
import { Timeline } from '@dryui/ui/timeline' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
Timeline.Root | |||||
| orientation | verticalhorizontal | Horizontal or vertical layout direction. | 'vertical' | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Timeline.Item | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Timeline.Icon | |||||
| children | Snippet | Content rendered inside the component. | — | — | — |
Timeline.Content | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Timeline.Title | |||||
| level | 123456 | Semantic heading level to render. | 3 | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Timeline.Description | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Timeline.Time | |||||
| datetime | string | — | — | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |