antd-jalali-v5
v1.0.2
Published
###### (Compatible with version 5)
Downloads
24
Maintainers
Readme
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>
)
}