Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jalaali-react-date-picker

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jalaali-react-date-picker

An advanced jalaali date picker that supports on all of Javascript frameworks, Specially React and React Native

  • 0.1.44
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
284
decreased by-18.62%
Maintainers
2
Weekly downloads
 
Created
Source

React Jalaali Datepicker

An advanced jalaali datepicker for Reactjs library.

Version MIT License

Documentation

Installation

Install jalaali-react-date-picker with npm

  npm install jalaali-react-date-picker

Install jalaali-react-date-picker with yarn

  yarn add jalaali-react-date-picker

Running Tests

To run tests, run the following command

  npm run test or yarn test

Usage/Examples

Do not forget to import index.css at top of your application

import "jalaali-react-date-picker/lib/styles/index.css";
import { DatePicker } from "jalaali-react-date-picker";

function App() {
  return <DatePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { RangePicker } from "jalaali-react-date-picker";

function App() {
  return <RangePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { InputDatePicker } from "jalaali-react-date-picker";

function App() {
  return <InputDatePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { InputRangePicker } from "jalaali-react-date-picker";

function App() {
  return <InputRangePicker />;
}

Features

  • Completely support on React and and server side frameworks like Nextjs.
  • Easily define custom dates and highlight them with any color you want.
  • Full styles customization (style overrides, colors and etc)
  • Support both gregorian and jalaali (Shamsi) date format

props

| Property | Type | Description | | :------------------ | :---------------------------------------------------------- | :-------------------------------------------------------------------------------------- | -------------------- | | value | Moment | To set date | | defaultValue | Moment | To set default date, if date is null or undefined, the date will be set | | onChange | (date: Value, dateString: string) => void | Callback function, can be executed when the selected date is changing | | onDayChange | (day: number) => void | Callback function, can be executed then return day when the selected date is changing | | onMonthChange | (month: MonthValue) => void | Callback function, can be executed then return month when the selected date is changing | | onYearChange | (year: number) => void | Callback function, can be executed then return year when the selected date is changing | | disabledDates | (current: Moment) => boolean \| DisabledValueRange | To specify the date that cannot be selected | | dayRender | (date: Moment,dayNode:React.ReactNode) => React.ReactNode | Render custom day component in panel | | renderExtraHeader | (current:Moment) => React.ReactNode | Render extra header in panel | | renderFooter | (current:Moment) => React.ReactNode | Render extra footer in panel | | locale | fa | en | Locale configuration |

Authors

Using Third Party

momentjs

License

MIT

Keywords

FAQs

Package last updated on 09 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc