A small date picker built with Svelte 3. Demo available here: view docs and examples.
npm i -D svelte-calendar
day.js
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;