Components
BaseTimeline
An activity history grouped by day, with actors, chips, actions and a loading state.
components/ui/BaseTimeline.vue
View in the demo
Example
- AJThe workspace moved to Pro.Aurelie Jessop Plan upgraded
- View invoiceInvoice paidINV-0012
- Dax Lennox was invited as Editor.Member invited
- AJThe workspace moved to Pro.Aurelie Jessop Plan upgradedStarterPro
An item with an actor puts the person's avatar on the line and reads as one sentence: the name, the icon in its color, the title and the chips. Items without an actor are system events and show the icon in a tonal tile.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
items | TimelineItem[] | [] | Each { id?, title, description?, timestamp, icon?, color?, actor?, chips?, action? }. |
group-by-day | boolean | true | Adds Today, Yesterday and date headers. |
loading | boolean | false | Shows the skeleton. |
loading-items | number | 4 | How many skeleton items. |
heading-tag | string | "h3" | The tag of the day headings (h3 by default). Use h2 when the timeline sits right under the page title. |
Slots
Name | Slot props | Description |
|---|---|---|
#context | { item: TimelineItem; } | Extra content under an item, such as a before → after change; receives item. |