Skip to content

payload-fa/payload-jalali-date-picker

Repository files navigation

payload-jalali-date-picker

A simple integration of a Jalali (Persian) date and time picker as a custom component for PayloadCMS, built using Next.js, react-multi-date-picker, and shadcn/ui.

This project demonstrates how to extend PayloadCMS with custom fields to support Persian calendar-based date/time selection.


🛠 Tech Stack


📦 Installation

pnpm install

🚀 Development

pnpm dev

This will start the PayloadCMS server and Next.js app in development mode.

📅 Jalali Date Picker

The Jalali date and time picker is built using:

You can integrate the custom component inside your Payload collection fields like so:

{
  name: 'eventDate',
  type: 'text', // store formatted string
  admin: {
    components: {
      Field: '@/components/persian-date-and-time-picker#default',
    },
  },
}

Replace YourJalaliDatePickerComponent with the actual import path.

📁 Project Status

This is a minimal working example intended for devs who want to integrate Jalali date pickers into PayloadCMS.

📄 License

MIT

Let me know if you’d like a Persian version or want it tailored more toward publishing it on GitHub.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published