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

@widgetkit/scheduler-vue

v0.0.3

Published

Vue 3 timeline scheduler component

Downloads

328

Readme

@widgetkit/scheduler-vue

A fast, accessible timeline scheduler component for Vue 3. Supports drag-and-drop, resize, multi-row layouts, zoom, and full keyboard navigation — with zero dependencies beyond Vue itself.

Documentation & live demo →

Installation

npm install @widgetkit/scheduler-vue
# or
pnpm add @widgetkit/scheduler-vue
# or
yarn add @widgetkit/scheduler-vue

Usage

Import the component and its stylesheet, then pass resources and items:

<script setup lang="ts">
import { ref } from "vue";
import { SchedulerVue } from "@widgetkit/scheduler-vue";
import "@widgetkit/scheduler-vue/styles.css";

const resources = [
  { id: "alice", name: "Alice" },
  { id: "bob", name: "Bob" },
];

const date = ref(new Date());
const items = ref([
  {
    id: "1",
    resourceId: "alice",
    name: "Team meeting",
    color: "#6366f1",
    start: new Date("2024-06-10T09:00"),
    end: new Date("2024-06-10T10:30"),
  },
]);
</script>

<template>
  <SchedulerVue
    :resources="resources"
    v-model:items="items"
    v-model:date="date"
    draggable
    resizable
    creatable
  />
</template>

Custom item slot

<SchedulerVue :resources="resources" v-model:items="items" v-model:date="date">
  <template #item="{ item }">
    <span style="font-weight: bold">{{ item.name }}</span>
  </template>
</SchedulerVue>

Props

Data

| Prop | Type | Required | Description | | ------------------------- | ---------------- | -------- | ------------------------------------------- | | resources | Resource[] | Yes | Rows in the scheduler. See types. | | items / v-model:items | TimelineItem[] | Yes | Events to display. See types. | | date / v-model:date | Date | Yes | The day currently shown. |

Time range

| Prop | Type | Default | Description | | ------------- | -------- | ------- | ------------------------------------- | | startHour | number | 0 | First visible hour (0–23). | | endHour | number | 24 | Last visible hour (1–24). | | snapMinutes | number | 15 | Snap interval when dragging/creating. |

Interaction

| Prop | Type | Default | Description | | -------------------- | --------- | ------- | ---------------------------------------------------------------------- | | draggable | boolean | true | Allow items to be dragged to a new time or resource. | | resizable | boolean | false | Allow items to be resized by dragging their edges. | | creatable | boolean | false | Allow new items to be created by clicking and holding on an empty row. | | editable | boolean | true | Show an edit modal on double-click. | | readonly | boolean | false | Disable all interactions (drag, resize, create, edit, keyboard). Tooltips and hover events still work. | | minDurationMinutes | number | 0 | Minimum item duration in minutes. 0 means no limit. | | maxDurationMinutes | number | 0 | Maximum item duration in minutes. 0 means no limit. |

Display

| Prop | Type | Default | Description | | ----------------------- | ------------- | ------- | ----------------------------------------------------------- | | zoom / v-model:zoom | 1 \| 2 \| 4 | 1 | Horizontal zoom level. 2 = double width, 4 = quadruple. | | showNav | boolean | false | Show previous/next day buttons. | | showDateNav | boolean | true | Show the date header with navigation. | | showZoomControls | boolean | true | Show zoom in/out buttons. | | showTime | boolean | true | Show start and end time on each item. | | showAvatar | boolean | true | Show resource avatar in the row header. | | showEventCount | boolean | true | Show the number of events per resource. | | showTooltip | boolean | true | Show a tooltip with item details on hover. | | showNowLine | boolean | true | Show a line indicating the current time. |

Slots

| Slot | Props | Description | | ------- | ------------------------ | -------------------------------------------------------- | | #item | { item: TimelineItem } | Replace the default item content with a custom template. |


Events

| Event | Payload | Description | | ------------------- | ------------------------------------ | ---------------------------------------------------------------------------- | | update:items | TimelineItem[] | Emitted after a drag or resize completes (used by v-model:items). | | update:date | Date | Emitted when the user navigates to a different day (used by v-model:date). | | update:zoom | 1 \| 2 \| 4 | Emitted when the zoom level changes (used by v-model:zoom). | | item-create | { resourceId, start, end } | Emitted when a new item is created via click-and-hold. | | item-click | { item } | Emitted on single click. | | item-dbl-click | { item } | Emitted on double-click. | | item-hover | { item, type: 'enter' \| 'leave' } | Emitted on pointer enter/leave. | | item-context-menu | { item, x, y } | Emitted on right-click. | | item-drag-start | { item } | Emitted when a drag begins. | | item-drag-end | { item, resourceId, start, end } | Emitted when a drag ends. | | item-resize-start | { item } | Emitted when a resize begins. | | item-resize-end | { item, start, end } | Emitted when a resize ends. |


Types

interface Resource {
  id: string;
  name: string;
  avatar?: string; // URL to an image shown in the row header
}

interface TimelineItem {
  id: string;
  resourceId: string; // Must match a Resource id
  name: string;
  color: string; // CSS color string
  start: Date;
  end: Date;
  description?: string;
}