elreco / vue-tailwind-datepicker

A Vue 3 Datepicker using Tailwind CSS

Home Page:https://vue-tailwind-datepicker.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue Tailwind Datepicker

Vue Tailwind Datepicker

A Datepicker component for Vue 3 using Tailwind and dayjs.

Commitizen friendly

Documentation

Go to full documentation

Installation

⚠️ Vue Tailwind Datepicker uses Tailwind CSS (with the @tailwindcss/forms plugin) & Day.js under the hood, you must install those packages before. You can follow this tutorial.

Install via npm

npm install vue-tailwind-datepicker

Install via yarn

yarn add vue-tailwind-datepicker

Simple Usage

How it works,

<script setup>
import { ref } from "vue";
import VueTailwindDatepicker from "vue-tailwind-datepicker";

const dateValue = ref([]);
const formatter = ref({
  date: "DD MMM YYYY",
  month: "MMM",
});
</script>

<template>
  <div>
    <vue-tailwind-datepicker :formatter="formatter" v-model="dateValue" />
  </div>
</template>

Theming options

Light Mode

Light Mode

Dark Mode

Dark Mode

Changelog

All notable changes to this project will be documented in the Releases Page.

Sponsor

License

The MIT License. Please see for more information.

Thanks to

About

A Vue 3 Datepicker using Tailwind CSS

https://vue-tailwind-datepicker.com

License:MIT License


Languages

Language:Vue 86.7%Language:TypeScript 9.2%Language:CSS 3.1%Language:JavaScript 0.4%Language:HTML 0.3%Language:Shell 0.2%