calendar_picker_classic
v1.1.2
Published
## Props
Readme
import { DatePickerClassic } from 'calendar_picker_classic';
Props
| Prop | Type | Description | | ------------ | -------- | ---------------------------------------------------------------------------- | | onDateSelect | function | Callback invoked when a date is selected. Receives{ timestamp, timeString }. |
How it Works
Calculates the number of days in selected month and the first day of the week
Builds a calendar grid with appropriately offset empty cells
Dropdown logic toggles visibility on month/year click
Date selection highlights the chosen day and calls the callback
Accessibility
Buttons have aria-labels for screen readers
Date cells are keyboard-navigable and selectable via keyboard
Dependencies React 16.8+ (hooks API)
No external dependencies
