This project is a simple calendar component built with React.
- Display a calendar with a monthly view
- Show weekdays and the current month
- Highlight the current day
- Customizable locale settings for displaying weekdays
- Switch between different months
-
Install the dependencies by running
npm install
. -
Run the project by executing
npm run dev
.
Calendar
: The main component that renders the calendar and provides context for other components.CalendarContext
: The context that provides information about the current month and other relevant data.CalendarNavbar
: The component that renders the header of the calendar, including month and navigation controls.CalendarBody
: The component that renders the actual calendar body, including weekdays and month days.
You can customize the locale settings in the CalendarProvider
component to display weekdays in your desired language. Simply modify the locale
variable accordingly.
This project is licensed under the MIT License.