TimelineEvent

Type: React component

An event presented in a Timeline. Renders a date/time or a custom specified label and a point on the timeline in the desired color, based on the "colorName" prop.

Props

  1. children

    (Optional)

    Type: ReactNode

    Default value

  2. colorName

    (Optional)

    Renders the point on the timeline in the specified colorName.

    Default value

  3. date

    (Required)

    Type: String | Class

    Renders a date/time label or a custom label next to the point on the timeline.

    When specifying a Date instance, a date/time label will be presented formatted as YYYY (only shown when it's not the current year) DD-MM and HH:MM.

    A custom label can be specified by specifying a string, this will directly output the string value.