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

vue-headless-datepicker

v0.0.15

Published

Simple and easy-to-use headless datepicker for vue!

Readme

Vue Headless Datepicker

Simple and easy-to-use headless datepicker for vue!

Prerequisites

You need to have dayjs installed for this package to work as intended. You can install it like this:

npm i dayjs

Installation

The package can be installed using the below command.

npm i vue-headless-datepicker

Usage

The styling is entirely up to you, but this simple example should show the basics of how the package is meant to work. For more examples, you can look in the src/stories folder.

Note: This example uses tailwindcss, which is a separate package you'd need to install. The component work just fine with regular CSS as well, though.

<script setup>
import {
    DatePicker, DatePickerButton, DatePickerCalendarItem, DatePickerPanel, DatePickerNavButton,
} from 'vue-headless-datepicker';
import dayjs from 'dayjs';
import { ref } from 'vue';

const date = ref(dayjs());
</script>

<template>
    <DatePicker
        v-model="date"
        v-slot="{ viewDate, date }"
    >
        <DatePickerButton class="bg-indigo-500 text-white font-semibold rounded-lg px-3 py-2">
            {{ date.format('YYYY-MM-DD HH:mm') }}
        </DatePickerButton>

        <DatePickerPanel
            class="absolute mt-2 px-3 py-2 bg-indigo-200 rounded-lg overflow-hidden"
            v-slot="{ daysInCurrentMonth }"
        >
            <div class="flex justify-between py-1 px-2">
                <DatePickerNavButton
                    class="text-sm"
                    direction="backward"
                >
                    Prev
                </DatePickerNavButton>

                <div>
                    {{ viewDate.format('YYYY-MM') }}
                </div>

                <DatePickerNavButton
                    class="text-sm"
                    direction="forward"
                >
                    Next
                </DatePickerNavButton>
            </div>

            <div class="grid grid-cols-7 gap-1">
                <DatePickerCalendarItem
                    v-for="day in daysInCurrentMonth"
                    :key="day.format('YYYY-MM-DD')"
                    :value="day"
                    as="template"
                    v-slot="{ selected, active }"
                >
                    <button
                        class="p-3 hover:bg-indigo-300 rounded-lg focus:outline-none"
                        :class="{
                            'bg-indigo-300': selected || active,
                            'text-gray-500': !viewDate.isSame(day, 'month') && !selected,
                        }"
                    >
                        {{ day.format('DD') }}
                    </button>
                </DatePickerCalendarItem>
            </div>
        </DatePickerPanel>
    </DatePicker>
</template>

Storybook

The examples available in the src/stories folder are also available as a storybook. You can run it by cloning the repository and running the below command:

npm run storybook

From there, storybook should be available at http://localhost:6006 in your browser. If the port is already in use, another port may be used instead.

Contributing

Feel free to suggest changes through either the issues tab or as a pull request! I'll try to take a look as soon as possible.

You can also ask questions using the discussion tab as needed, but I can't guarantee any support that way.