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

@kebalicious/vue3-daterange-picker

v1.0.7

Published

A modern Vue 3 date range picker component with Sass support

Readme

@kebalicious/vue3-daterange-picker

A modern Vue 3 date range picker component with full TypeScript support and Sass styling.

npm version license

Features

  • 📅 Fully compatible with Vue 3
  • 🎨 Customizable with Sass/SCSS variables
  • 📱 Responsive design
  • 🌐 Internationalization support
  • ⌨️ Keyboard navigation
  • 📦 TypeScript definitions included
  • 🎯 Tree-shakable ES modules
  • 🔧 Modern build system with Vite
  • ✨ Zero Sass deprecation warnings
  • 🚀 Modern @use syntax for future-proof styling

Installation

# npm
npm install @kebalicious/vue3-daterange-picker

# yarn
yarn add @kebalicious/vue3-daterange-picker

# pnpm
pnpm add @kebalicious/vue3-daterange-picker

Usage

Global Registration

import { createApp } from 'vue'
import DateRangePicker from '@kebalicious/vue3-daterange-picker'
import '@kebalicious/vue3-daterange-picker/dist/style.css'

const app = createApp(App)
app.use(DateRangePicker)

Local Registration

<template>
  <div>
    <DateRangePicker 
      v-model="dateRange"
      :options="pickerOptions"
      @update="handleDateUpdate"
    />
  </div>
</template>

<script>
import { ref } from 'vue'
import { DateRangePicker } from '@kebalicious/vue3-daterange-picker'
import '@kebalicious/vue3-daterange-picker/dist/style.css'

export default {
  components: {
    DateRangePicker
  },
  setup() {
    const dateRange = ref({
      startDate: new Date(),
      endDate: new Date()
    })
    
    const pickerOptions = {
      timePicker: true,
      timePickerIncrement: 30,
      locale: {
        format: 'DD/MM/YYYY HH:mm:ss'
      }
    }
    
    const handleDateUpdate = (value) => {
      console.log('Date range updated:', value)
    }
    
    return {
      dateRange,
      pickerOptions,
      handleDateUpdate
    }
  }
}
</script>

Composition API with TypeScript

import { ref } from 'vue'
import type { DateRangePickerOptions } from '@kebalicious/vue3-daterange-picker'

const dateRange = ref({
  startDate: new Date(),
  endDate: new Date()
})

const options: DateRangePickerOptions = {
  timePicker: true,
  autoApply: true,
  locale: {
    format: 'YYYY-MM-DD'
  }
}

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | startDate | Date\|string | new Date() | Initial start date | | endDate | Date\|string | new Date() | Initial end date | | minDate | Date\|string | null | Minimum selectable date | | maxDate | Date\|string | null | Maximum selectable date | | timePicker | boolean | false | Enable time selection | | timePickerIncrement | number | 1 | Time picker minute increment | | timePicker24Hour | boolean | false | Use 24-hour format | | autoApply | boolean | false | Auto-apply selection without confirm button | | singleDatePicker | boolean | false | Single date picker mode | | showDropdowns | boolean | false | Show month/year dropdowns | | linkedCalendars | boolean | true | Link calendar months | | appendToBody | boolean | false | Append picker to body | | opens | string | 'right' | Picker opening direction: 'left', 'right', 'center' | | drops | string | 'down' | Picker dropping direction: 'up', 'down' |

Events

| Event | Payload | Description | |-------|---------|-------------| | update | {startDate, endDate} | Fired when date range is updated | | select | {startDate, endDate} | Fired when date range is selected | | apply | {startDate, endDate} | Fired when apply button is clicked | | cancel | - | Fired when cancel button is clicked |

Styling

The component comes with default styling, but you can customize it using CSS/SCSS variables:

// Override default variables
$primary-button-bg: #007bff;
$primary-button-color: #fff;
$ranges-hover-bg-color: #f8f9fa;

@import '@kebalicious/vue3-daterange-picker/dist/style.css';

Browser Support

  • Chrome >= 60
  • Firefox >= 55
  • Safari >= 11
  • Edge >= 79

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Run tests
npm run test

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Based on the original vue2-daterange-picker by Innologica.