اولیه

import persian from "react-date-object/calendars/persian"
import persian_fa from "react-date-object/locales/persian_fa"
.
.
.
import "react-multi-date-picker/styles/layouts/prime.css"
.
.
.
<DatePicker
  className="rmdp-prime"
  showOtherDays
  calendar={persian}
  locale={persian_fa}
  calendarPosition="bottom-right"
/>

موبایل

import persian from "react-date-object/calendars/persian"
import persian_fa from "react-date-object/locales/persian_fa"
.
.
.
import "react-multi-date-picker/styles/layouts/mobile.css"
.
.
.
<DatePicker
  className="rmdp-mobile"
  calendar={persian}
  locale={persian_fa}
  calendarPosition="bottom-right"
/>

تغییر متن دکمه ها در حالت تلفن همراه

import persian from "react-date-object/calendars/persian"
import persian_fa from "react-date-object/locales/persian_fa"
.
.
.
import "react-multi-date-picker/styles/layouts/mobile.css"
.
.
.
<DatePicker
  className="rmdp-mobile"
  mobileLabels={{
    OK: "Accept",
    CANCEL: "Close",
  }}
  calendar={persian}
  locale={persian_fa}
  calendarPosition="bottom-right"
/>

Custom Mobile Buttons

import persian from "react-date-object/calendars/persian"
import persian_fa from "react-date-object/locales/persian_fa"
.
.
.
import "react-multi-date-picker/styles/layouts/mobile.css"
.
.
.

const [value, setValue] = useState();

return (
  <DatePicker
    className="rmdp-mobile"
    value={value}
    onChange={setValue}
    mobileButtons={[
      {
        label: "RESET",
        type: "button",
        className: "rmdp-button rmdp-action-button",
        onClick: () => setValue({}),
      },
    ]}
  />
)