npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

v-tmline

v1.5.0

Published

A timeline component for Vue 3. It provides a simple and easy-to-use interface for creating custom timelines for light or dark themes.

Readme

Live demo

Official Documentation

Npm package page

v-tmline

Features

  • Customizable bullets style: filled or outlined
  • Custom colors
  • Left and right alignment
  • Support slots and named slots
  • Support for light and dark mode

dark-light-mode

Installation

npm install v-tmline

Usage

Import and use the component in your Vue application:

<script setup>
import { Timeline } from 'v-tmline'

const timelineItems = [
  {
	id: 1,
	label: 'First Point'
  },
  {
	id: 2,
	label: 'Second Point'
  },
  {
	id: 3,
	label: 'Third Point'
  }
]
</script>

<template>
  <Timeline :items="timelineItems" />
</template>

Props

| Prop | Type | Default | Description | Available Options | |------|------|---------|-------------|-------------------| | items | Array | required | Array of timeline items. Each item must be an object with at least a label property | - | | mode | String | 'light' | Theme mode of the timeline | 'light', 'dark' | | fill | String | 'filled' | Style of timeline dots | 'filled', 'outlined' | | colored | String | '' | Custom color for the timeline (CSS color value) | Any valid CSS color | | align | String | 'left' | Alignment of the timeline | 'left', 'right' |

Timeline Items

Each item in the items array should have the following structure:

{
  id?: string | number, // Optional unique identifier
  label: string        // Required text to display
}

Customization

Basic Timeline

<template>
  <Timeline :items="[
    { label: 'Started project' },
    { label: 'Released v1.0' },
    { label: 'Added new features' }
  ]" />
</template>

Custom Colored Timeline

<template>
  <Timeline
    :items="timelineItems"
    colored="#2196F3"
  />
</template>

Dark Mode Timeline

<template>
  <Timeline
    :items="timelineItems"
    mode="dark"
  />
</template>

Right-Aligned Timeline

<template>
  <Timeline
    :items="timelineItems"
    align="right"
  />
</template>

Custom Content using Slots

You can customize the content of each timeline item using the slot feature: default or named slot.

Default Slot

<template>
  <Timeline :items="timelineItems">
    <!-- Default slot -->
	<template #item="{ item }">
		<div>Default: {{ item.label }}</div>
	</template>
  </Timeline>
</template>

Named Slot

<template>
  <!-- Custom slot for work items -->
	<template #work="{ item }">
		<div class="work-item">
			<h3>💫 {{ item.label }}</h3>
			<p>{{ item.company }}</p>
		</div>
	</template>

		<!-- Custom slot for education items -->
	<template #education="{ item }">
		<div class="education-item">
			<h3>📚 {{ item.label }}</h3>
			<p>{{ item.school }}</p>
		</div>
	</template>
</template>

Styling

The component uses the following CSS classes that you can override:

  • .re-timeline - Main timeline container
  • .re-timeline-item - Individual timeline item
  • .re-timeline-item-tail - Timeline connector line
  • .re-timeline-item-head - Timeline dot
  • .re-timeline-item-content - Content container

Full Example

<script setup>
import { Timeline } from 'v-tmline'

const timelineItems = [
  {
    id: 1,
    label: 'Project Started',
  },
  {
    id: 2,
    label: 'First Milestone',
  },
  {
    id: 3,
    label: 'Project Completed',
  }
]
</script>

<template>
  <Timeline
    :items="timelineItems"
    mode="light"
    fill="filled"
    colored="#2196F3"
    align="left"
  >
    <template #item="{ item }">
      <div class="custom-timeline-content">
        <h3>{{ item.label }}</h3>
        <p>Custom content here</p>
      </div>
    </template>
  </Timeline>
</template>

<style scoped>
.custom-timeline-content {
  padding: 10px;
  border-radius: 4px;
  background-color: #f5f5f5;
}
</style>

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.