Skip to content

Timeline - Flowbite Vue ​

Use the timeline component to display a list of items and events in a chronological order based on Tailwind CSS utility classes ​


Timeline - Flowbite

Original reference: https://flowbite.com/docs/components/timeline/

The timeline component can be used to display a list of events in chronological order with support for icons, dates, and a horizontal layout — built with FwbTimeline, FwbTimelineItem, FwbTimelinePoint, FwbTimelineContent, FwbTimelineTime, and FwbTimelineTitle.

Default ​

Use FwbTimeline with nested FwbTimelineItem components. Each item contains a FwbTimelinePoint followed by FwbTimelineContent with optional FwbTimelineTime, FwbTimelineTitle, and FwbTimelineBody.

  1. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  2. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  3. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

vue
<template>
  <fwb-timeline>
    <fwb-timeline-item>
      <fwb-timeline-point />
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2020
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point />
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2020
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point />
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2020
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
  </fwb-timeline>
</template>

<script setup>
import {
  FwbTimeline,
  FwbTimelineBody,
  FwbTimelineContent,
  FwbTimelineItem,
  FwbTimelinePoint,
  FwbTimelineTime,
  FwbTimelineTitle,
} from 'flowbite-vue'
</script>

Timeline with Icons ​

Pass an SVG icon as the default slot of <fwb-timeline-point> to replace the default dot with a custom icon.

  1. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  2. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  3. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

vue
<template>
  <fwb-timeline class="vp-raw">
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path
            clip-rule="evenodd"
            d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
            fill-rule="evenodd"
          />
        </svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path
            clip-rule="evenodd"
            d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
            fill-rule="evenodd"
          />
        </svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path
            clip-rule="evenodd"
            d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
            fill-rule="evenodd"
          />
        </svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
  </fwb-timeline>
</template>

<script setup>
import {
  FwbTimeline,
  FwbTimelineBody,
  FwbTimelineContent,
  FwbTimelineItem,
  FwbTimelinePoint,
  FwbTimelineTime,
  FwbTimelineTitle,
} from 'flowbite-vue'
</script>

Horizontal Timeline ​

Add the horizontal prop to FwbTimeline to arrange items side by side instead of stacked vertically.

  1. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  2. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

  3. Application UI code in Tailwind CSS

    Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.

vue
<template>
  <fwb-timeline horizontal>
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        ><path
          clip-rule="evenodd"
          d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
          fill-rule="evenodd"
        /></svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts, kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        ><path
          clip-rule="evenodd"
          d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
          fill-rule="evenodd"
        /></svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
    <fwb-timeline-item>
      <fwb-timeline-point>
        <svg
          aria-hidden="true"
          class="w-3 h-3 text-blue-600 dark:text-blue-400"
          fill="currentColor"
          viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path
            clip-rule="evenodd"
            d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
            fill-rule="evenodd"
          />
        </svg>
      </fwb-timeline-point>
      <fwb-timeline-content>
        <fwb-timeline-time>
          February 2022
        </fwb-timeline-time>
        <fwb-timeline-title>
          Application UI code in Tailwind CSS
        </fwb-timeline-title>
        <fwb-timeline-body>
          Get access to over 20+ pages including a dashboard layout, charts,
          kanban board, calendar, and pre-order E-commerce & Marketing pages.
        </fwb-timeline-body>
      </fwb-timeline-content>
    </fwb-timeline-item>
  </fwb-timeline>
</template>

<script setup>
import {
  FwbTimeline,
  FwbTimelineBody,
  FwbTimelineContent,
  FwbTimelineItem,
  FwbTimelinePoint,
  FwbTimelineTime,
  FwbTimelineTitle,
} from 'flowbite-vue'
</script>

Timeline component API ​

FwbTimeline Props ​

NameTypeDefaultDescription
horizontalBooleanfalseLays out the timeline items horizontally.

FwbTimeline Slots ​

NameDescription
defaultOne or more FwbTimelineItem components.

FwbTimelineItem Slots ​

NameDescription
defaultFwbTimelinePoint and FwbTimelineContent elements.

FwbTimelinePoint Slots ​

NameDescription
defaultOptional icon to replace the default dot marker.

FwbTimelineContent Slots ​

NameDescription
defaultFwbTimelineTime, FwbTimelineTitle, and FwbTimelineBody elements.

FwbTimelineTime Slots ​

NameDescription
defaultThe date or time label text.

FwbTimelineTitle Slots ​

NameDescription
defaultThe event title text.

FwbTimelineBody Slots ​

NameDescription
defaultThe event description text.

Released under the MIT License.