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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mittirorg/svelte-datepicker

v0.0.1

Published

Ultimate calendar for your Svelte app.

Downloads

4

Readme

svelte-datepicker

This repository hosts a customizable and responsive datepicker component built using the Svelte. Whether you're building a personal productivity app, a scheduling application, or just need a sleek and efficient datepicker UI, this project has you covered.

Features

  • Flexible Customization: Tailor the datepicker to your design needs with customizable themes, color schemes, and event markers.
  • Responsive Design: The datepicker seamlessly adapts to various screen sizes, ensuring a consistent experience across devices.
  • Event Integration: Easily integrate events, appointments, and important dates into the datepicker for a comprehensive scheduling solution.
  • Smooth Animations: Enjoy smooth and engaging animations for seamless navigation and interaction with the datepicker.
  • User-friendly Interface: The intuitive interface makes it easy for users to navigate, select dates, and manage their schedules.

Getting Started

To start using the svelte-datepicker in your project, follow these simple steps:

  1. Clone or download this repository.
  2. Integrate the datepicker component into your Svelte application using the provided examples.

Usage

Here's an example of how you can integrate the svelte-datepicker component into your Svelte application:

<script>
  import Calendar from 'svelte-datepicker';
</script>

<Calendar />

User guide

Calendar

Displays a complete, interactive datepicker.

Props

| Prop name | Description | Example values | | --- | --- | --- | | onChange | Function called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available. | (date) => {} | | onViewChange | Function called when the user navigates from one view to another using prev/next up button or by clicking a tile. viewTypes are month, year & decade | (viewType) => {} | | startDate | The beginning of a period that shall be displayed by default. | new Date(2017, 0, 1) | | rootClass | Class name that will be applied to a given datepicker wrapper | String: "class1 class2" | | calendarWrapperClass | Class name that will be applied to different view type of datepicker wrapper, | String: "class1 class2" | | defaultView | Determines which datepicker view shall be opened initially. Does not disable navigation. Can be "month", "year", "decade", it's optional. | "month" | | allowedViews | Will be an array of views that should be displayed while user navigates the datepicker/datepicker, it's optional | initial value: ["month", "year", "decade"] |