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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@coding-wisely/vue-tailwind-datepicker

v1.1.5

Published

Datepicker component based on Tailwind.css and Vue.js

Readme

Vue Tailwind Datepicker

Datepicker component based on Tailwind and Vue

Github All Releases

Vue Tailwind Datepicker

Table of Contents

##Requirements Some prerequesities are required, so i suppose you have tailwind.css and vue.js already in place in your app. If not, first install Tailwind.css and Vue.js.

Getting started

  • Install the plugin:

    Yarn

    yarn add @coding-wisely/vue-tailwind-datepicker

    Npm

    npm install @coding-wisely/vue-tailwind-datepicker

Usage

  • Add VueTailwindDatepicker into your app:

    import VueTailwindDatepicker from 'vue-tailwind-datepicker'
    
    Vue.use(VueTailwindDatepicker)
  • Use the vue-tailwind-datepicker component:

      <vue-tailwind-datepicker />

Installation

npm

  yarn add @coding-wisely/vue-tailwind-datepicker

Then use the component directly:

<!-- your-component.vue-->
<template>
  <vue-tailwind-datepicker v-model="date" @input="setStartDate"></vue-tailwind-datepicker>
</template>
<script>
import { VueTailwindDatepicker } from '@coding-wisely/vue-tailwind-datepicker'

export default {
    components: {
        VueTailwindDatepicker,
    },
    data(){
        return {
            startDate: '',
            form: {}
        }
    },
    methods: {
        setStartDate(startDate) {
            this.form.startDate = startDate;
        }
    }
};
</script>

Browser

Include script into your html page before closing body tag . It must be included after Tailwind.css and Vue.js are loaded.

<script src="https://unpkg.com/@coding-wisely/vue-tailwind-datepicker"></script>

If Vue is detected in the Page, the plugin is installed automatically.

Manually install the plugin into Vue:

Vue.use(VueTailwindDatepicker)

Or use the component directly:

Vue.component('vue-tailwind-datepicker', VueTailwindDatepicker)

Props

Test all props on Code Pen.

IMPORTANT

Props shall be called with hypens.

Example: <vue-tailwind-datepicker picker-wrapper-classess="flex w-full" />

REMEMBER

If you ad props classes, dont forget that defaults on particular props classes will not be applied at all, default will be ignored, and only your, props class will be applied. Means, <vue-tailwind-datepicker input-field-classess="w-full" /> will be applied on input field, and default classes on input field will be ignored.

| Property | Type | Default value | Description | | -------- | ---- | ------------- | ----------- | | pickerWrapperClasses | String | w-64 | CSS class that wraps component | | inputFieldClasses | String | focus:outline-none cursor-pointer w-full bg-white h-12 p-3 border-b border-purple-300 text-lg font-medium text-gray-700 | input field class | | pickerMonthSelectionClasses | String | flex justify-between h-12 w-full p-2 items-center bg-purple-100 uppercase | Datepicker header class with Month, Year and Previos and Next buttons| | pickerDaysHeaderClasses | String | flex w-full w-full justify-start text-center p-2 | Datepicker Days header (Su, Mo, Tu...) | | calendarWrapperClasses | String | flex w-full border-l border-r border-b border-purple-100 justify-start text-center flex-wrap | Wrapper around month calendar | | selectedDayClasses | String | bg-purple-500 text-white | CSS classes applied on date selected in month calendar | | currentDayClasses | String| bg-purple-300 text-white | CSS Classess applied on current date input | | chevronClasses | String | w-10 h-10 | CSS classess applied on Previous and Next SVG | | dateFormat | String | YYYY-MM-DD | Javascript moment library date format| | preselectedDay | String | `` | Javascript moment library date format and it shall match deafult dateFormat above | | closeOnClick | Boolean | true | Whether calendar days will close on click or not |

Made with ❤ by Coding Wisely.