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

js-calendar-strip

v1.0.4

Published

<div align="center"> <h1 align="center"> js-calendar-strip </h1> </div> <div align="center"> Crafted with passion by <a href="https://github.com/ravisoni01">Ravi </a> </div>

Downloads

31

Readme

Install

$ npm install js-calendar-strip
# OR
$ yarn add js-calendar-strip

Usage

The js-calendar-strip package is a versatile calendar strip component designed for seamless integration into web applications. It offers a compact, intuitive display of dates with easily accessible navigation controls. Developers can effortlessly generate and customize date ranges, making it an ideal solution for applications requiring date-based interactions.

Key Features:

  • Calendar Strip Display: Presents a visually intuitive strip of dates for easy reference.
  • Next and Previous Buttons: Allows users to navigate forward and backward to view different date ranges.
  • Customization Options: Offers a range of styling and design options for tailoring the calendar strip to suit specific application aesthetics.
  • Date Disabling: Provides the functionality to selectively disable specific dates, offering fine-grained control over user interactions.
import React, { useState } from 'react';
import JsCalendarStrip from 'js-calendar-strip';

const Example = () => {
  const [selectedDate, setSelectedDate] = useState(new Date());

  const handleSelectDate = date => {
    setSelectedDate(date);
  };

  return (
    <div>
      <JsCalendarStrip
        selectedDate={selectedDate}
        onDateChange={handleSelectDate}
      />
    </div>
  );
};

Props

| Prop | Description | Type | Default | | ----------------------------- | ------------------------------------------------------------------------------------- | -------- | ------------ | | selectedDate | Holds the currently chosen date . | | Today's Date | | onDateChange | Callback function triggered when a user selects a new date . | Function | | | startDate | Sets the initial date from where the calendar needs to begin . | Date | | | endDate | Final date visible in the calendar . | Date | | disableDates | Allows the inclusion of a list of dates that are not selectable within the calendar . | Array | | style | Style for the main container of the calendar . | | | headerStyle | Style for the header text of the calendar . | | | dateNumberStyle | Style for the date number of the calendar strip . | | | dayNameStyle | Style for the day name of the calendar strip . | | | selectedDayNameStyle | Style for the selected day name of the calendar strip . | | | selectedDateNumberStyle | Style for the selected date number of the calendar strip . | | | selectedDateStyle | Style for the selected date of the calendar strip . | | | | hoverStyle | Hover Style for the calendar strip . | | | | disableStyle | Style for the disable date of the calendar strip . | |

License

Licensed under the MIT License.