6eDesign / svelte-calendar

A lightweight datepicker with neat animations and a unique UX.
https://6edesign.github.io/svelte-calendar/
MIT License
543 stars 90 forks source link
calendar-component calendar-widget datepicker svelte svelte-framework svelte-v3 svelte3 sveltejs

svelte-calendar

A small date picker built with Svelte 3. Demo available here: view docs and examples.

Demo

Installation

npm i -D svelte-calendar

Features

Usage within svelte-kit project

When using this component within a svelte-kit application it is necessary to add its two dependencies (just-throttle and dayjs) to the config.kit.vite.optimizeDeps.include array in svelte.config.js. Eg: your config should include the following:

const config = {
  kit: {
    vite: {
      optimizeDeps: {
        include: ['just-throttle', 'dayjs']
      }
    }
  }
};

export default config;

Features In Development