⚠️
This repository is unmaintainable.
please move to Litepie Datepicker for Vue 3 & Tailwind CSS 2
Tailwind CSS Datepicker Component Vue.js + SSR support
Datepicker component for vue.js built with Tailwind CSS, and the day.js date library.
Vue Tailwind Picker supports SSR.
Light mode
Dark mode
Documentation
For more information about vue-tailwind-picker
, view the docs(progress for updated). Read the CHANGELOG.
Free Tailwind CSS Design Component
This was created using the free component from Tailwind CSS. Tailwind CSS Design
License
The MIT License (MIT). Please see for more information.
Changelog
Please see for more information what has changed recently.
Donate & Support
If you would like to support the development of this package, you can donate here.
Made with love by Ken
Tailwindcss 2.0 not supported
I get the following error while trying to install
Cannot select previous dates
I know there is a closed issue on this, but I cannot still get it to work,
For what I can see, I also can't select any date before the current one. It says it's fixed, I just can't find a way get it working. Any examples on this? Thank you
Can't select dates in the past
Is there something I'm missing from the config? I have
:init="false"
but my picker only lets me select today or any day after.Docs: Include dayjs as a requirement
Based on #4 ,
dayjs
is now apeerDependency
. Due to this, users must installdayjs
themselves.However, the documentation fails to address this requirement and states that only TailwindCSS is required.
ask: dayjs is bundled
You can see https://bundlephobia.com/[email protected], the dayjs is become part of your library. This means people might have different dayjs version in their project. For this case, dayjs should become
peerDependencies
, notdependencies
. We let users install their own dayjs.But this is just my opinion, you might have your own reasons for this decision.
Fix format date
Problem
Because of the default value of the
startDate
prop it's not possible to use theformatDate
prop without overriding thestartDate
every time.Solution
I removed the default value which is using a hardcoded format and added a
today fallback
for the initialization of thestartDatepicker
variable instead.feat: Add "selectedDate" props to display selected date
If "startDate" is earlier than "selectedDate", it enables the option to navigate between these dates without disabling.
Close #13.
Add "selectedDate" props to display selected date
Feature
Add "selectedDate" props to display selected date If "startDate" is earlier than "selectedDate", it enables the option to navigate between these dates without disabling.
Example of use:
<VueTailwindPicker :start-date="startDate" :selected-date="selectedDate" @change="(v) => selectedDate = v"
data(){ return:{ startDate: "2020-01-01", selectedDate: "2020-05-01", } }
I'm working on it to make a commit
Thanks for everything <3
[Vue warn]: Error in beforeCreate hook: "ReferenceError: btoa is not defined"
I am seeing this error on page load when used in Nuxt
ERROR [Vue warn]: Error in beforeCreate hook: "ReferenceError: btoa is not defined"
node_modules\vue-tailwind-picker\dist\vue-tailwind-picker.umd.js
format-date and format-display is not working
Hi,
When the format is set DD-MM-YYYY or DD/MM/YYYY the component does not work.
<VueTailwindPicker :formatDate="'DD-MM-YYYY'" :formatDisplay="'DD-MM-YYYY'" @change="(v) => value = v"> <input v-model="value" placeholder="Example initial value"> </VueTailwindPicker>
Date not formatted [Nuxt JS]
format-date and format-display is not working the result like this
Doesn't work with [email protected]
While using this package I've noticed that when you use version 1.10.0 (currently latest release) of dayjs this package stops working. I've not put much thought into this and reverted back to using 1.9.7 after which my application started functioning again.
Command used to downgrade:
npm install [email protected] --save
app.js:
EventCreate.vue:
Unrelated question!
Hi!
I saw you had a bottom nav bar component on tailwind components, and I really liked the SVG's you used.
Could you share where you got them from? Thanks so much, Parkerr