🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@vuepic/vue-datepicker

Package Overview
Dependencies
Maintainers
0
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepic/vue-datepicker

Datepicker component for Vue 3

11.0.2
latest
Source
npm
Version published
Weekly downloads
338K
9.14%
Maintainers
0
Weekly downloads
 
Created

What is @vuepic/vue-datepicker?

@vuepic/vue-datepicker is a Vue.js component for creating date pickers. It provides a range of functionalities for selecting dates, including single date selection, date range selection, and customization options for the date picker interface.

What are @vuepic/vue-datepicker's main functionalities?

Single Date Selection

This feature allows users to select a single date. The selected date is bound to a Vue ref variable.

<template>
  <DatePicker v-model="selectedDate" />
</template>

<script>
import { ref } from 'vue';
import DatePicker from '@vuepic/vue-datepicker';

export default {
  components: { DatePicker },
  setup() {
    const selectedDate = ref(null);
    return { selectedDate };
  }
};
</script>

Date Range Selection

This feature allows users to select a range of dates. The selected date range is bound to a Vue ref object with start and end properties.

<template>
  <DatePicker v-model="dateRange" range />
</template>

<script>
import { ref } from 'vue';
import DatePicker from '@vuepic/vue-datepicker';

export default {
  components: { DatePicker },
  setup() {
    const dateRange = ref({ start: null, end: null });
    return { dateRange };
  }
};
</script>

Customizable Date Picker

This feature allows customization of the date picker, including date format and disabling specific dates.

<template>
  <DatePicker v-model="selectedDate" :format="customFormat" :disabled-dates="disabledDates" />
</template>

<script>
import { ref } from 'vue';
import DatePicker from '@vuepic/vue-datepicker';

export default {
  components: { DatePicker },
  setup() {
    const selectedDate = ref(null);
    const customFormat = 'DD-MM-YYYY';
    const disabledDates = [new Date(2023, 0, 1), new Date(2023, 11, 25)];
    return { selectedDate, customFormat, disabledDates };
  }
};
</script>

Other packages similar to @vuepic/vue-datepicker

Keywords

vue-datepicker

FAQs

Package last updated on 16 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts