Timeline
Added in alpha.11
Included in Mavis 0.1.0-alpha.11 for Vue + Vite, Nuxt and NativeScript iOS/Android. Keep core and renderers on the same version.
<MTimeline
:items="activity"
label="Project activity"
><template #default="{ item }"><MText :text="item.description" /></template></MTimeline>| Prop | Type | Default | Description |
|---|---|---|---|
items | readonly TimelineItem[] | required | Stable key, title, optional description, formatted time, icon and status. |
statusLabels | Record<TimelineStatus, string> | English labels | complete, current, upcoming and error; status is readable without color. |
label / emptyLabel | string | required / No activity yet | Accessible list name and empty-state copy. |
default | slot | — | Receives { item, index }; content remains mounted as status changes. |
A chronological list in application order, with themed connectors, state icons and Jolt entry/indicator motion. No autonomous progress or timer is inferred. Time is already formatted by the application; use formatDateTime for locale/timezone-aware timestamps. Keep stable keys when replacing or reordering data. Reduced motion follows the Mavis motion context.
Each entry arrives once, as it scrolls into view, rising a little after the one above it; entries already visible on load arrive in sequence. The connector toward the next entry draws down when it first appears, so a newly added step extends the line toward it. When a step becomes current, a ring ripples out from its icon once. Content keeps its place in the accessibility tree the whole time, and under reduced motion every entry is shown at once.
Native layout
On iOS and Android the title wraps in the space left by the time label. The catalog shows a workshop title beside the full time range, including the UTC suffix.
iPhone 17 Pro simulator, iOS 26.2
Android API 36 emulator
The native probe activates Approve and continue and returns to the first entry.
<script setup lang="ts">
import { computed, ref } from 'vue'
import { useCatalogLocale } from '../locale'
import type { TimelineItem } from '@getcortexlabs/mavis-core'
const props = defineProps<{ lang?: 'en' | 'pt' }>()
const { locale } = useCatalogLocale(() => props.lang)
const pt = computed(() => (props.lang ?? locale.value) === 'pt')
const t = (en: string, br: string) => (pt.value ? br : en)
const delivered = ref(false)
const items = computed<TimelineItem[]>(() => [
{
key: 'idea',
title: t(
'An idea takes shape in the first design workshop',
'Uma ideia ganha forma na primeira oficina de design',
),
description: t(
'The brief is ready. A new story begins.',
'O briefing está pronto. Uma nova história começa.',
),
time: '09:00–10:45 UTC',
status: 'complete',
icon: 'sparkles',
},
{
key: 'design',
title: t('Made with intention', 'Feito com intenção'),
description: t(
'Colors, type and every little detail.',
'Cores, letras e cada pequeno detalhe.',
),
time: '11:30',
status: 'complete',
icon: 'pen-tool',
},
{
key: 'review',
title: t('A fresh pair of eyes', 'Um novo olhar'),
description: t('Sharing the work with the team.', 'Compartilhando o trabalho com a equipe.'),
time: '14:00',
status: delivered.value ? 'complete' : 'current',
icon: 'message-circle',
},
{
key: 'launch',
title: t('Ready for the world', 'Pronto para o mundo'),
...(delivered.value
? {
description: t(
'Approved. It is going out to everyone now.',
'Aprovado. Está chegando a todo mundo agora.',
),
}
: {}),
time: '16:00',
status: delivered.value ? 'current' : 'upcoming',
icon: 'rocket',
},
...(delivered.value
? [
{
key: 'share',
title: t('Notes for next time', 'Notas para a próxima vez'),
description: t(
'What worked, kept while it is fresh.',
'O que funcionou, guardado enquanto está fresco.',
),
time: '17:00',
status: 'upcoming' as const,
icon: 'notebook-pen' as const,
},
]
: []),
])
</script>
<template>
<MCard id="timeline-card" padding="lg" gap="lg">
<MRow justify="between" wrap gap="sm"
><MText
:text="t('From spark to launch.', 'Da ideia ao mundo.')"
variant="heading"
:shrink="1" /><MBadge :text="t('TODAY', 'HOJE')" tone="primary"
/></MRow>
<MTimeline
:items="items"
:label="t('Project activity', 'Atividade do projeto')"
:statusLabels="
pt
? {
complete: 'Concluído',
current: 'Em andamento',
upcoming: 'A seguir',
error: 'Precisa de atenção',
}
: undefined
"
>
<template #default="{ item }"
><MRow v-if="item.key === 'review'" gap="xs"
><MAvatar name="Alex Morgan" size="sm" /><MAvatar name="Sam Lee" size="sm" /><MAvatar
name="Jo Rivera"
size="sm" /></MRow
></template>
</MTimeline>
<MButton
:text="
delivered ? t('Start again', 'Recomeçar') : t('Approve and continue', 'Aprovar e continuar')
"
:icon="delivered ? 'rotate-ccw' : 'arrow-right'"
variant="secondary"
@click="delivered = !delivered"
/>
</MCard>
</template>On Web, iOS and Android, removing a keyed entry fades its visual copy while the next entries move up. Keep the same keys when updating the text of an existing entry.
Desktop
The desktop draws each entry with its status mark, the line to the next entry, the time and the status words, with the default slot below. Entries appear at once: the arrival, the drawn line and the ripple of the current entry are not played. See Desktop components.
Removing an entry fades it and moves the remaining entries into place.

