Getting Started
Basic Usage
Slot Booking
Disable Dates
Customization

Getting Started

This Calendar was developed using Hooks and Javascript date object without any dependencies. The calendar has options where users can choose between single-date, multiple-date, range and slots booking features.

This package uses React hooks. Make sure you're running react >= 16.8.0 version.

Installation

# NPM
npm i react-select-date
# YARN
yarn add react-select-date

Basic Usage

Example: Single Select

The single-date selection is a fully controlled component that allows users to select a single date from the calendar table.
SunMonTueWedThuFriSat

Selected Date

Disabled Date
VIEW CODE

Example: Multi Select

The multiple Date selection is a fully controlled component that allows users to select multiple dates.
SunMonTueWedThuFriSat

Selected Date

Disabled Date
VIEW CODE

Example: Range Select

The dateRange is a fully controlled component that allows users to select a date range. The user can select the date range from either the date-input field or the calendar table.
SunMonTueWedThuFriSat

Selected Date

Disabled Date
VIEW CODE

Slot Booking

Slots booking is a fully controlled component that allows users to view the avilable and total slots.

Example: Single Slot

SunMonTueWedThuFriSat

Selected Date

Disabled Date

Available Slots
VIEW CODE

Example: Duel Slots

SunMonTueWedThuFriSat

Selected Date

Disabled Date

Available Slots

Total Slots
VIEW CODE

Disable Dates

Example: MinDate and MaxDate

Defines the minimum and maximam date to show in the calender.
SunMonTueWedThuFriSat

Selected Date

Disabled Date
VIEW CODE

Example: Disable Specific Dates and Disable Days

Defines the disable specific dates and disable days to show in the calender.
SunMonTueWedThuFriSat

Selected Date

Disabled Date
VIEW CODE

Customization

Can customize the calender like Date Fields
externalLinkCodeSandbox

Example: Override CSS

SunMonTueWedThuFriSat
VIEW CODE

Example: Props Flow

SunMonTueWedThuFriSat

Selected Date

Disabled Date