Timeline

The timeline displays a list of events in chronological order.

View source code

Timeline

  • children
    ReactElement<TimelineItemProps, string | JSXElementConstructor<any>> | ReactElement<TimelineItemProps, string | JSXElementConstructor<...>>[]

    The TimelineItem(s) contained within the Timeline

  • className
    string

    className for the element

  • fit
    "content" | "parent"

    Specifies the width of the element

    Default: content
  • renderDate
    (date: Date, locale: string) => string

    Function called to render date

    Default: (date: Date, locale: string) => { return dateFormatter(locale, date, DATE_FORMAT.LONG_WITH_TIME); }

TimelineItem

  • children
    ReactNode

    Content to render

  • date
    Date

    The element's date

  • renderDate
    (date: Date, locale: string) => string

    Function called to render date