react-date-fns
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -10,3 +10,3 @@ { | ||
"private": false, | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"type": "module", | ||
@@ -13,0 +13,0 @@ "license": "MIT", |
@@ -21,3 +21,3 @@ # ReactDateFns Package | ||
import React from "react"; | ||
import { DateDisplay, DateSelect, CountdownTimer } from "react-date-fns"; | ||
import { DateDisplay, CountdownTimer } from "react-date-fns"; | ||
@@ -34,8 +34,2 @@ const App = () => { | ||
</DateDisplay> | ||
<DateSelect | ||
className="date-select-class" | ||
pattern="MM/dd/yyyy" | ||
onDateChange={handleDateChange} | ||
showSelectedDate | ||
/> | ||
<CountdownTimer | ||
@@ -60,11 +54,2 @@ className="countdown-class" | ||
### DateSelect Props | ||
The `DateSelect` component accepts the following props: | ||
- `className` (`string`, optional): Additional CSS classes to apply to the container element. | ||
- `pattern` (`string`): The format pattern to use for displaying the selected date. | ||
- `onDateChange` (`function`, optional): Callback function to handle date changes. | ||
- `showSelectedDate` (`boolean`, optional): Whether to display the selected date. Defaults to `true`. | ||
### CountdownTimer Props | ||
@@ -71,0 +56,0 @@ |
export { CountdownTimer } from './CountdownTimer'; | ||
export { DateDisplay } from './DateDisplay'; | ||
export { DateSelect } from './DateSelect'; | ||
export { DateDisplay } from './DateDisplay'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68118
51
1216
122