1.0.2 • Published 27 days ago

antd-jalali-v5 v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
27 days ago

Ant Design DatePicker, Jalali Support

(Compatible with version 5)

Installation

npm install antd-jalali-v5

Install via yarn

yarn add antd-jalali-v5

How to use

import { ConfigProvider, DatePicker } from 'antd'
import faIR from 'antd/locale/fa_IR'
import JalaliProvider from 'antd-jalali-v5'

function App() {
  return (
    <ConfigProvider direction='rtl' locale={faIR}>
      <JalaliProvider />
      <DatePicker />
      <DatePicker.RangePicker />
    </ConfigProvider>
  )
}