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

@rozie-ui/flatpickr-vue

v0.1.1

Published

Idiomatic Vue date/time picker — one Rozie source compiled to Vue wrapping flatpickr.

Readme

@rozie-ui/flatpickr-vue

Idiomatic vue Flatpickr — a cross-framework date picker compiled from one Rozie source wrapping flatpickr. This package is generated; do not edit src/ by hand.

Install

npm i @rozie-ui/flatpickr-vue

Peer dependencies: flatpickr ^4.6 + vue. Install them alongside this package, and import flatpickr's stylesheet (import 'flatpickr/dist/flatpickr.css') once in your app.

Usage

<script setup lang="ts">
import { ref } from 'vue';
import Flatpickr from '@rozie-ui/flatpickr-vue';
import 'flatpickr/dist/flatpickr.css';

const date = ref('2026-05-17');
</script>

<template>
  <Flatpickr v-model:date="date" @change="(e) => console.log(e.value, e.selectedDates)" />
</template>

Props

| Name | Type | Default | Two-way (model) | Required | | --- | --- | --- | :---: | :---: | | date | String | "" | ✓ | | | mode | String | "single" | | | | dateFormat | String | "Y-m-d" | | | | altInput | Boolean | false | | | | altFormat | String | "F j, Y" | | | | enableTime | Boolean | false | | | | enableSeconds | Boolean | false | | | | time24hr | Boolean | false | | | | noCalendar | Boolean | false | | | | minDate | String | null | | | | maxDate | String | null | | | | placeholder | String | "Select a date…" | | | | disabled | Boolean | false | | | | commitOn | String | "complete" | | | | options | Object | {} | | | | name | String | "" | | | | inline | Boolean | false | | | | staticPosition | Boolean | false | | | | position | String | "auto" | | | | appendTo | Object | null | | | | showMonths | Number | 1 | | | | weekNumbers | Boolean | false | | | | monthSelectorType | String | "dropdown" | | | | prevArrow | String | null | | | | nextArrow | String | null | | | | allowInput | Boolean | false | | | | disable | Array | [] | | | | enable | Array | [] | | | | locale | Object | null | | | | firstDayOfWeek | Number | 0 | | | | parseDate | Function | null | | | | formatDate | Function | null | | | | plugins | Array | [] | | |

Events

| Event | Description | | --- | --- | | change | Fired when the selected date(s) change. Payload { value, selectedDates }. In range mode the bound string commits only when the range is complete (2 dates) unless commitOn: "change". | | ready | Fired once the calendar is initialised and mounted. Payload { value, selectedDates }. | | open | Fired when the calendar popover opens. | | close | Fired when the calendar popover closes. | | monthChange | Fired when the displayed month changes. | | yearChange | Fired when the displayed year changes. | | valueUpdate | Fired on every internal value update (including partial range clicks), before the change commit. Payload { value, selectedDates }. | | dayCreate | Fired for each day cell as the calendar renders. Payload is the day HTMLElement, for per-day decoration. |

Imperative handle

Beyond props/events, the component exposes imperative methods (declared once in the Rozie source via $expose). Grab a handle with the native ref mechanism and call them directly:

<script setup>
import { ref } from 'vue';
const fp = ref();          // template ref
</script>

<template>
  <Flatpickr ref="fp" />
  <button @click="fp.openPicker()">Open</button>
</template>

| Method | Description | | --- | --- | | clear | Clear the selected date(s) and the bound input. | | openPicker | Open the calendar popover. | | closePicker | Close the calendar popover. | | selectDate | Set the selected date programmatically — selectDate(date, triggerChange?). Pass true as the second argument to also fire change. | | jumpToDate | Navigate the calendar view to a date — jumpToDate(date) — without changing the selection. | | getSelectedDates | Return the currently selected dates as a Date[] on demand (the two-way date model is a formatted string; the parsed dates are otherwise only on the change payload). [] before mount. | | togglePicker | Open the calendar if closed, close it if open — togglePicker() (single-trigger button). | | changeMonth | Move the calendar by value months (or to an absolute month) — changeMonth(value, isOffset?) (isOffset defaults to true). | | changeYear | Jump the calendar to an absolute year — changeYear(year). |