Simple Vue Timeline Component

0.1.2 · abandoned · verified Sun Apr 19

vue-simple-timeline is a lightweight component designed to render basic chronological timelines within Vue 2 applications. The current stable version is 0.1.2, which typically indicates an early stage of development and suggests the project is likely inactive or has a very slow release cadence. It functions as a Vue plugin, installed via `Vue.use()`, making the `<simple-timeline>` component globally available. This package focuses on providing a straightforward timeline display with customizable event points and content, differentiating itself by its simplicity rather than offering advanced interactivity or complex layout options. It is exclusively built for the Vue 2 ecosystem and is not compatible with Vue 3.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install the `vue-simple-timeline` plugin and integrate the `<simple-timeline>` component into a basic Vue 2 application with sample data.

import Vue from 'vue';
import SimpleTimeline from 'vue-simple-timeline';

// Install the plugin to make <simple-timeline> component globally available
Vue.use(SimpleTimeline);

new Vue({
  el: '#app',
  template: `
    <div id="app">
      <h1>My Historical Events</h1>
      <simple-timeline :items='timelineEvents'></simple-timeline>
      <p>The timeline component is rendered above with sample data.</p>
    </div>
  `,
  data () {
    return {
      timelineEvents: [
        {
          tag: '2018-01-12',
          content: 'Hello. You can use <b>FULL</b> HTML here, be sure to sanitize<br/>if you are using user input!',
          footer: 'Stuff you want to appear in the footer'
        },
        {
          tag: '2018-01-13',
          color: '#dcdcdc',
          type: 'circle',
          content: 'World of Vue'
        },
        {
          type: 'star',
          tag: '2018-01-14',
          content: 'Awesome journey!'
        }
      ]
    }
  }
});

view raw JSON →