JSPM

ios-jalali-datepicker

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q62416F
  • License MIT

A React component for selecting Jalali (Persian) dates with iOS-style picker

Package Exports

  • ios-jalali-datepicker
  • ios-jalali-datepicker/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ios-jalali-datepicker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

iOS Jalali DatePicker

A React component for selecting Jalali (Persian) dates with iOS-style picker.

Installation

npm install ios-jalali-datepicker

React Compatibility

Compatible with React 16.8+, including React 19

  • React 16.8+
  • React 17.x
  • React 18.x
  • React 19.x ✅

Demo

iOS Jalali DatePicker Demo

Usage

import React from 'react';
import MonthYearSelector from 'ios-jalali-datepicker';

function App() {
  const handleDateChange = (dateInfo) => {
    console.log('Selected date:', dateInfo);
  };

  return (
    <MonthYearSelector
      onChange={handleDateChange}
      initialDate={new Date()}
    />
  );
}

export default App;

Props

Prop Type Description
onChange (dateInfo: SelectedDateInfo) => void Callback function called when date changes
initialDate Date Initial date to display (optional)

Types

type SelectedDateInfo = {
  selectedMonthIndex: number;
  selectedYear: number;
  selectedDay: number;
  date: Date;
};

License

MIT