persian-calender
v1.2.13
Published
this pkg to Easy
Readme
persian-calender
The Persian Calendar Package is a powerful and easy-to-use React component for displaying and selecting dates based on the Iranian calendar system. This package allows seamless integration of the Persian calendar in your React applications with features like month/year navigation, date selection, and dark mode support. این پکیج تقویم فارسی یک کامپوننت قدرتمند و آسان برای استفاده در React است که به شما این امکان را میدهد تا تاریخها را براساس تقویم ایرانی نمایش داده و انتخاب کنید. این پکیج بهراحتی در برنامههای React شما یکپارچه میشود و ویژگیهایی مانند ناوبری ماه/سال، انتخاب تاریخ و پشتیبانی از حالت شب را فراهم میآورد.
Install
npm install --save persian-calenderUsage
import React from 'react';
import PersianCalendar from 'persian-calender';
import 'persian-calender/dist/index.css'; // Import the font and styles
const App = () => {
return (
<PersianCalendar
darkMode={false} // Enable dark mode
responsive={true} // Make it responsive
onChange={(date) => console.log(date)} // Handle date selection
animate={true} // Enable animations
inputStyle={{ width: '100px', height: '50px' }} // Custom input styles
mode="single" // "single" or "range" mode
theme="default" //default | green | red | elegant | galactic
showHolidays={false} // default false
/>
);
};
export default App;تم ها
آخرین تغییرات
جدول پراپس
MIT © Mohammadsd
