https://github.com/jmestxr/react-datetime-picker
DateTime Picker for React App, analog-style.
https://github.com/jmestxr/react-datetime-picker
ongoing react ui-component
Last synced: about 2 months ago
JSON representation
DateTime Picker for React App, analog-style.
- Host: GitHub
- URL: https://github.com/jmestxr/react-datetime-picker
- Owner: jmestxr
- Created: 2022-10-30T08:51:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T16:30:16.000Z (over 3 years ago)
- Last Synced: 2025-03-04T19:44:47.924Z (over 1 year ago)
- Topics: ongoing, react, ui-component
- Language: TypeScript
- Homepage:
- Size: 439 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-datetime-picker
Datetime Picker for React App
## Demo

## Docs
### Props
| Name | Type | Default | Description |
|----------------|---------------------------|-------------|------------------------------------------------------------------------------------------------------|
| `size` | `“sm” │ “lg”` | `“sm”` | Size of DateTimePicker component |
| `dateValue` | `string` | `undefined` | Defines the initial selected date in the format: “DD/MM/YYYY” |
| `timeValue` | `string` | `undefined` | Defines the initial selected time in the format: “HH:MM DayPeriod” |
| `onSelectDate` | `(value: string) => void` | `undefined` | Executes a given JavaScript code when the selected date (passed into the parameter `value`) changes. |
| `onSelectTime` | `(value: string) => void` | `undefined` | Executes a given JavaScript code when the selected time (passed into the parameter `value`) changes. |