1.0.2 • Published 10 months ago

@softwares-land/react-persian-datepicker v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

React Persian Date Picker :calendar:

Installation

Use npm to install the package:

npm @softwares-land/react-persian-datepicker --save

Usage

This package offers two components, Calendar and DatePicker. The first of which is a simple calendar that you can use in whichever way you want. The second one is an actual input with an input-ish behaviour.

This package uses moment-jalaali under the hood and all the values are basically moment objects.

Below is a basic example.

import React from "react";
import { Calendar, DatePicker } from "@softwares-land/react-persian-datepicker";

const MyComponent = () => (
  <div>
    <div>
      {/* Calendar Component */}
      <Calendar />
    </div>

    <div>
      {/* Date Picker Component */}
      <DatePicker />
    </div>
  </div>
);