Timeline

Visually display timeline.

Basic usage

Timeline can be split into multiple activities. Timestamps are important features that distinguish them from other components. Note the difference with Steps.

  • Event start
    2018-04-15
  • Approved
    2018-04-13
  • Success
    2018-04-11

Custom node

Size, color, and icons can be customized in node.

  • Custom icon
    2018-04-12 20:46
  • Custom color
    2018-04-03 20:46
  • Custom size
    2018-04-03 20:46
  • Custom hollow
    2018-04-03 20:46
  • Default node
    2018-04-03 20:46

Custom timestamp

Timestamp can be placed on top of content when content is too high.

  • 2018/4/12

    Update Github template

    Tom committed 2018/4/12 20:46

  • 2018/4/3

    Update Github template

    Tom committed 2018/4/3 20:46

  • 2018/4/2

    Update Github template

    Tom committed 2018/4/2 20:46

Vertically centered

Timeline-Item is centered vertically.

  • 2018/4/12

    Update Github template

    Tom committed 2018/4/12 20:46

  • 2018/4/3

    Update Github template

    Tom committed 2018/4/3 20:46

  • 2018/4/2
    Event start
  • 2018/4/2
    Event end

Timeline API

Timeline Slots

NameDescriptionSubtags
defaultcustomize default content for timelineTimeline-Item

Timeline-Item API

Timeline-Item Attributes

NameDescriptionTypeDefault
timestamptimestamp contentstring''
hide-timestampwhether to show timestampbooleanfalse
centerwhether vertically centeredbooleanfalse
placementposition of timestampenumbottom
typenode typeenum''
colorbackground color of nodeenum''
sizenode sizeenumnormal
iconicon componentstring / Component
hollowicon is hollowbooleanfalse

Timeline-Item Slots

NameDescription
defaultcustomize default content for timeline item
dotcustomize defined node for timeline item

Source

ComponentStyleDocs

Contributors