@softwares-land/react-persian-datepicker

1.0.2 • Public • Published

React Persian Date Picker 📆

React Persian Date Picker مجموعه‌ای از کامپوننت‌های ReactJS مورد نیاز جهت ایجاد ورود و نمایش تاریخ هجری شمسی است. این نرم‌افزار متن‌باز در ایوند توسعه یافته‌است.

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>
);

Package Sidebar

Install

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

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

52.7 kB

Total Files

16

Last publish

Collaborators

  • softwares-land