You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
568 B

import React, { useState } from "react";
import './index.css';
import {Calendar, utils} from "react-modern-calendar-datepicker";
import './index.css';
const Calender = () =>{
const [selectedDay, setSelectedDay] = useState(null);
return(
<div className="flex items-center justify-center w-full my-2">
<Calendar
value={selectedDay}
onChange={setSelectedDay}
shouldHighlightWeekends
locale="fa" // add this
/>
</div>
);
};
export default Calender;