@svpkg/calendarly
TypeScript icon, indicating that this package has built-in type declarations

0.0.3Β β€’Β PublicΒ β€’Β Published

🚧 Package Under Progress 🚧

πŸ“… @svpkg/calendarly – A Simple & Flexible React Calendar Component

@svpkg/calendarly is a lightweight, customizable calendar component built with React, Day.js, and CSS. It provides both single-date and date-range selection with an intuitive UI.

✨ Features

βœ… Single and multiple-month view
βœ… Quick selection options (Today, Yesterday, This Week, etc.)
βœ… Single-date and date-range selection
βœ… Minimal dependencies (React + Day.js)
βœ… Fully customizable


πŸš€ Installation

npm install @svpkg/calendarly

or

yarn add @svpkg/calendarly

πŸ› οΈ Usage

Basic Example

import { Calendarly } from "@svpkg/calendarly";

<Calendarly 
    type="single" 
    isRange={false} 
    quickSelection={true} 
    onSelect={(date) => console.log("Selected date:", date)}
/>

Props

Prop Type Description
type "single" | "multiple" "single" shows one month, "multiple" shows two months side by side.
isRange boolean If true, enables date range selection. If false, allows single date selection.
quickSelection boolean If true, displays quick selection options like Today, This Week, etc.
onSelect (date: string | [string, string]) => void Callback function triggered on date selection. Returns either a single date or a date range.

πŸ“Œ Example Use Cases

1️⃣ Single-Date Picker

<Calendarly 
    type="single"
    isRange={false}
    quickSelection={false}
    onSelect={(date) => console.log("Selected:", date)}
/>

single calendar

πŸ“† Date-Range Picker

<Calendarly 
    type="multiple"
    isRange={true}
    quickSelection={true}
    onSelect={(range) => console.log("Selected Range:", range)}
/>

Multiple calendar

πŸ”₯ Why Use @svpkg/calendarly?

βœ” No external calendar packages – pure React & Day.js
βœ” Simple, minimal UI with easy customization
βœ” Quick date selection options for faster input


πŸ“œ License

MIT License. Feel free to use


Enjoy using @svpkg/calendarly? 🌟 Star the repo on github and share your feedback! πŸš€

Readme

Keywords

none

Package Sidebar

Install

npm i @svpkg/calendarly

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

15.6 kB

Total Files

14

Last publish

Collaborators

  • svpkg