Skip to content

Timeline

The timeline displays a list of events in chronological order.

Import

js
import { MpTimeline, MpTimelineItem, MpTimelineTitle, MpTimelineCaption, MpTimelineContent, MpTimelineDocument, MpTimelineLog, MpTimelineLogItem, MpTimelineAccordion } from '@mekari/pixel3'

Playground

API

MpTimeline

Slots
NameType
default
Timeline slot
any

MpTimelineAccordion

Props
Slots
NameTypeDefault
is-open
If `true` content will be visible.
booleanfalse
label
Label of timeline accordion.
string -

MpTimelineItem

Props
Slots
NameTypeDefault
status
Status of timeline item.
"approved" | "canceled" | "need-approval" | "rejected" | "created"created
icon
Icon of timeline item.
IconNamecreated
icon-variant
Icon variant of timeline item.
"outline" | "duotone" | "fill" -
icon-color
Icon color of timeline item.
ColorToken | string -

MpTimelineTitle

Slots
NameType
default
Timeline title slot
any

MpTimelineCaption

Slots
NameType
default
Timeline caption slot
any

MpTimelineContent

Slots
NameType
default
Timeline content slot
any

MpTimelineDocument

Props
Slots
NameTypeDefault
title
Title of timeline document.
string -
file-size
File size of timeline document.
string -
icon
Icon of timeline document.
string -
icon-variant
Icon variant of timeline document.
"outline" | "duotone" | "fill" -

MpTimelineLog

Props
Slots
NameTypeDefault
is-open
If `true` content will be visible.
booleanfalse

MpTimelineLogItem

Slots
NameType
default
Timeline log item slot
any

Usage

With Description

With Action

With Document

With Log

With Accordion

With Multiple content

With Other component